Javascript Date numDays()
numDays()
Date.prototype.numDays = function() { var d = new Date(this.getFullYear(), this.getMonth() + 1, 0); return d.getDate(); };