Function DateDifferenceDays

Calculates the number of days between two dates

DateDifferenceDays([DATE_1],[DATE_2],[ROUND_DOWN])

Parameters

#TypePassingDefaultNameDescription/Comments
1datetimerequiredn/aDATE_1The first date
2datetimerequiredn/aDATE_2The second date
3booleanoptionalTrueROUND_DOWNWhether 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)}}