Macro Scheduler 15

DateDiff

DateDiff>date1,date2,interval,result

 

Returns the difference between two dates.  Interval can be one of:

 

D: Days

W: Weeks

M: Months

Y: Years

 

The dates must be in local system format. Use DateLocal to generate a date in local system format.

 

See also: DateAdd, DateLocal, DatePart

 

Example:

 

GetDate>today

DateAdd>today,M,1,NextMonth

 

DateDiff>today,NextMonth,D,numberDays