datetime.diff()

Determines the number of given date parts between two different dates

datetime.diff( datepart, date1, date2 )

Returns: Number

Argument Description
datepart
string, required

String that specifies the units in which to count: - yyyy: Years - q: Quarters - m: Months - y: Days of year (same as d) - d: Days - w: Weeks - h: Hours - n: Minutes - s: Seconds

date1
datetime, required

date time object to compare

date2
datetime, required

date time object to compare

Examples

There are currently no examples for this function

See also