DateDiff
Calculates the difference between two dates in the specified time unit. Returns the result as a Number. The difference is computed as left - right.
Reference
Parameters
left
The first date in the comparison. The result is left minus right.
Component data2-core-primitives@Date
right
The second date in the comparison. Subtracted from the left date to produce the result.
Component data2-core-primitives@Date
period
The time unit used to express the difference between the two dates.
Component data2-core-primitives@String
One of 'years' | 'months' | 'weeks' | 'days' | 'hours' | 'minutes' | 'seconds'