DateDiff()

Determines the number of given date parts between two different dates

Usage

NUMERIC = DateDiff( datepart, date1, date2 )
Argument Summary
datepart date part ('yyyy' year, 'q' quarter, 'm' month, 'y' day of year,'d' days, 'w' week day, 'ww' week of year, 'h' hours, 'n' minutes, 's' seconds, 'l' milliseconds)
date1 date1
date2 date2

Calling

Supports named-parameter calling allowing you to use the function like:

DateDiff(
   datepart=?, 
   date1=?, 
   date2=?
);

Supports passing parameters as a structure using ArgumentCollection:

DateDiff( ArgumentCollection={
   datepart : ?, 
   date1 : ?, 
   date2 : ?
} );