Computer Learning Zone CLZ Access Excel Word Windows

The thing about smart people is that they seem like crazy people to dumb people.

-Stephen Hawking
 
Home   Courses   Index   Templates   Seminars   TechHelp   Forums   Help   Contact   Join   Order   Logon  
 
DateDiff Function

Glossary > Access

Returns the number of intervals between two dates. This can be days, months, years, etc.

  • DateDiff(Interval, Date1, Date2, [FirstDayOfWeek], [FirstWeekOfYear])

Interval can be:

  • yyyy - Year
  • q - Quarter
  • m - Month
  • y - Day of Year
  • d - Day
  • w - Weekday
  • ww - Week of Year
  • h - Hour
  • n - Minute
  • s - Second

Date1 and Date2 are valid DateTime fields

FirstDayOfWeek is optional and can be:

  • 0 - vbUseSystemDayOfWeek - Use the NLS API setting.
  • 1 - vbSunday - Sunday [default]
  • 2 - vbMonday - Monday
  • 3 - vbTuesday - Tuesday
  • 4 - vbWednesday - Wednesday
  • 5 - vbThursday - Thursday
  • 6 - vbFriday - Friday
  • 7 - vbSaturday - Saturday

FirstWeekOfYear is optional and can be:

  • 0 - vbUseSystem - Use the NLS API setting.
  • 1 - vbFirstJan1 - Start with week in which January 1 occurs (default).
  • 2 - vbFirstFourDays - Start with the first week that has at least four days in the new year.
  • 3 - vbFirstFullWeek - Start with first full week of the year.

RESOURCES:

 

Start a NEW Conversation
 
Only students may post on this page. Click here for more information on how you can set up an account. If you are a student, please Log On first. Non-students may only post in the Visitor Forum.
 
Subscribe
Subscribe to DateDiff Function
Get notifications when this page is updated
 
 
 
 

The following is a paid advertisement
Computer Learning Zone is not responsible for any content shown or offers made by these ads.
 

Learn
 
Access - index
Excel - index
Word - index
Windows - index
PowerPoint - index
Photoshop - index
Visual Basic - index
ASP - index
Seminars
More...
Customers
 
Login
My Account
My Courses
Lost Password
Memberships
Student Databases
Change Email
Info
 
Latest News
New Releases
User Forums
Topic Glossary
Tips & Tricks
Search The Site
Code Vault
Collapse Menus
Help
 
Customer Support
Web Site Tour
FAQs
TechHelp
Consulting Services
About
 
Background
Testimonials
Jobs
Affiliate Program
Richard Rost
Free Lessons
Mailing List
PCResale.NET
Order
 
Video Tutorials
Handbooks
Memberships
Learning Connection
Idiot's Guide to Excel
Volume Discounts
Payment Info
Shipping
Terms of Sale
Contact
 
Contact Info
Support Policy
Mailing Address
Phone Number
Fax Number
Course Survey
Email Richard
[email protected]
Blog RSS Feed    YouTube Channel

LinkedIn
Copyright 2024 by Computer Learning Zone, Amicron, and Richard Rost. All Rights Reserved. Current Time: 10/13/2024 5:58:52 PM. PLT: 0s
Keywords: datediff function glossary  PermaLink  DateDiff Function