Get days in Month - Node.js Date

Node.js examples for Date:Month

Description

Get days in Month

Demo Code


Date.prototype.daysInMonth = function(){
    return 32 - new Date(this.getFullYear(), this.getMonth(), 32).getDate();
};

Related Tutorials