Skip to main content



IsLeapYear Function

The IsLeapYear function returns true if the year is a leap year.

Syntax

IsLeapYear(dateTime)

The IsLeapYear function returns true if the year is a leap year.

Arguments

dateTime DateTime - A date-time.

Remarks

Example:

IsLeapYear("2008-1-28"); // returns true

Example:

IsLeapYear("2010-1-28"); // returns false