Age(
     date:date,
     [string:units]
)
int

Arguments

date

The date in question.

units

Optional. Unit type to return (defaults to "d" for days). Valid unit types are:

yyyyYears
qQuarter years
mMonths
yDays
dDays
wWhole weeks
wwCalendar weeks (number of Sundays)
hHours
nMinutes
sSeconds

Return value

Difference between the current date and the supplied date.

Description

Returns the difference between the the current date and the supplied dates, expressed as units (defaults to days).

Example:

Output(Age("2021-01-01"))
--> 1158