get last day of month [javascript]

var dayObject = new Date(year,month, 0).toString();
var d = dayObject.split(' ');
var day = d[2]; // get last day of month

Related posts:

This entry was posted in เกร็ดความรู้, เว็บไซต์. Bookmark the permalink.