DATEDIF
Calculates the number of time steps between two dates
DATEDIF(start date, end date, part)
Returns the differences between pairs of dates/times.
Arguments
Argument
Description
start date
Date/time value(s) corresponding to start date
end date
Date/time value(s) corresponding to end date
part
Part of the date/time objects to calculate the difference by. Supported parts:
yearsoryearoryrsoryrorYmonthsormonthormthsormthorMweeksorweekorwksorwkorWdaysordayordorDhoursorhourorhrsorhrorhminutesorminuteorminsorminormsecondsorsecondorsecsorsecorsms(milliseconds)
Outputs
Differences between starting and ending dates/times.
Each difference is a whole number representing full date part differences between the end and start dates/times.
These whole numbers can be positive or negative. Fractional differences are rounded down to the nearest whole number.
Example
Last updated
Was this helpful?