Function DateDifferenceDays
Calculates the number of days between two dates
DateDifferenceDays([DATE_1],[DATE_2],[ROUND_DOWN])
Parameters
# | Type | Passing | Default | Name | Description/Comments |
---|---|---|---|---|---|
1 | datetime | required | n/a | DATE_1 | The first date |
2 | datetime | required | n/a | DATE_2 | The second date |
3 | boolean | optional | True | ROUND_DOWN | Whether to round down or round up |
Returns
The number of days between two dates
Examples
Get number of days between now and a date
{{DateDifferenceDays(ALIAS.SDTIME,v_DateToday)}}