The Date.isLeapYear() function returns a boolean depending if the year in the date is a leap year or not.
Return Value
True if it is a leap year else false.
Example
Date.isLeapYear(2017); //false
The Date.isLeapYear() function returns a boolean depending if the year in the date is a leap year or not.
Return Value
True if it is a leap year else false.
Date.isLeapYear(2017); //false