Javascript Date numDays()

Description

Javascript Date numDays()


Date.prototype.numDays = function() {

  var d = new Date(this.getFullYear(), this.getMonth() + 1, 0);

  return d.getDate();

};



PreviousNext

Related