MomentJS - Is Leap Year



This method will return true or false if the moment year is a leap year.

Syntax

moment().isLeapYear();

Example

var isleapyear = moment([2000]).isLeapYear();

Output

Is Leap Year
momentjs_date_queries.htm
Advertisements