Date.IsLeapYear
Indicates whether this date falls in a leap year.
Syntax
Date.IsLeapYear(
dateTime as any
) as logical
Remarks
Indicates whether the given datetime value dateTime
falls in is a leap year.
dateTime
: Adate
,datetime
, ordatetimezone
value to be evaluated.
Examples
Example #1
Determine if the year 2012, as represented by <code>#date(2012, 01, 01)</code> is a leap year.
Date.IsLeapYear(#date(2012, 01, 01))
Result:
true
Category
Date