DateDiff(interval, date1, date2[, firstdayofweek[, firstweekofyear]]) returns the interval between two specified dates : DateDiff « Date Functions « VBA / Excel / Access / Word






DateDiff(interval, date1, date2[, firstdayofweek[, firstweekofyear]]) returns the interval between two specified dates

 
Constant         Value  Year Starts with Week         
vbUseSystem      0      Use the system setting.        
vbFirstJan1      1      The week in which January 1 falls (the default setting).        
vbFirstFourDays  2      The first week with a minimum of four days in the year.        
vbFirstFullWeek  3      The first full week (7 days) of the year.      

 








Related examples in the same category

1.DateDiff returns the interval of time between two dates:
2.Difference between two dates in days and months:
3.returns the number of weeks between June 3, 2006 and September 30, 2006:
4.DateDiff() function returns the difference between two dates. The unit for the difference is specified as a string ( "s" for second, "m" for month, "yyyy" for year, and so on).
5.DateDiff("m", Now, "10/10/03")
6.DateDiff("yyyy", Now, "10/10/03")
7.DateDiff("m", "3/15/2000", Now)
8.Use DateDiff function