/ Published in: JavaScript
returns the number of days in the month of a Date
Expand |
Embed | Plain Text
Date.prototype.getDaysInMonth = function() { return new Date( this.getFullYear(), this.getMonth() + 1, 0).getDate(); }
You need to login to post a comment.
