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:
years
oryear
oryrs
oryr
orY
months
ormonth
ormths
ormth
orM
weeks
orweek
orwks
orwk
orW
days
orday
ord
orD
hours
orhour
orhrs
orhr
orh
minutes
orminute
ormins
ormin
orm
seconds
orsecond
orsecs
orsec
ors
ms
(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?