SP.Utilities.DateUtility.isLeapYear(year) Method
Applies to: SharePoint Foundation 2010
In this article
Return Value
Remarks
Applies To
Determines whether the specified year is a leap year.
var value = SP.Utilities.DateUtility.isLeapYear(year);
Parameters
year
Type: int
The year to be verified.
Return Value
Type: Boolean
true if the specified year is a leap year; otherwise, false.
Remarks
The specified year should be valid in the Gregorian calendar.
Applies To
SP.Utilities.DateUtility Class