Javascript Date getDaysInMonth()

Description

Javascript Date getDaysInMonth()


Date.prototype.getDaysInMonth = function () {
    var here = new Date(this.getTime());
    here.setDate(32);/*  www.  j a v a 2 s .com*/
    return 32 - here.getDate();
};



PreviousNext

Related