Date.IsLeapYear
Date.IsLeapYear(dateTime as any) as nullable logical
Indicates whether the given datetime value dateTime
falls in is a leap year.
dateTime
: Adate
,datetime
, ordatetimezone
value to be evaluated.
Determine if the year 2012, as represented by #date(2012, 01, 01)
is a leap year.
Usage
Date.IsLeapYear(#date(2012, 01, 01))
Output
true