Lucee Object Methods Reference
Object Method Datetime.diff
Determines the number of given date parts between two different dates
Datetime.diff(datetime date1,datetime date2):number
Arguments
The arguments for this function are set. You can not use other arguments except the following ones.
Name | Type | Required | Description |
---|---|---|---|
date1 | datetime | Yes | date time object to compare |
date2 | datetime | Yes | date time object to compare |