Calculates the time difference between two dates.
Category: date
Syntax:
Returns: IntColumn
Context Filtering: ✓ Yes
Parameters
Allowed Values for unit: year, quarter, month, week, day, hour, minute, second, millisecond
Allowed Column Types: DATETIME, DATE
Validation
- Minimum parameters: 3
- Maximum parameters: 3
Examples
Days between the Invoice Date column and current UTC date.
Years between Invoice Date and 2018-01-01.
Result: 8
Hours between Ticket Date and current UTC time.
Result: 103
- DateAdd - Add or subtract time from a date
- Today - Get current date
- Now - Get current date and time
Last modified on March 13, 2026