DateDiff
Last updated
Was this helpful?
Last updated
Was this helpful?
The DateDiff function calculates the time difference between two dates.
DateDiff(unit, start, end)
The function has the following arguments:
unit
(required) The unit to measure the difference. Can be one of “year”, "quarter", “month”, “week”, “day”, “hour”, “minute”, “second”, “millisecond”.
start
(required) The starting date. Note that the value must be a date. If the column is not in the appropriate format, use the function on the argument.
end
(required) The ending date. Note that the value must be a date. If the column is not in the appropriate format, use the function on the argument.
Returns the number of days between the date in the Invoice Date column and the current UTC date.
Returns the number of years between the date in the Invoice Date column and January 1, 2018.
Returns the number of hours between the date and time in the Ticket Date column and the current UTC date and time.