Is date year leap year - Node.js Date

Node.js examples for Date:Year

Description

Is date year leap year

Demo Code

Date.prototype.isLeapYear = function()   
{   //from w w w.  j  a v  a 2  s .c  om
    return (0==this.getYear()%4&&((this.getYear()%100!=0)||(this.getYear()%400==0)));   
}

Related Tutorials