/ Published in: JavaScript
Using the day "zero" of the next month...
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
// get last day of august as day zero of september var date = new Date(2011, 8, 0); // get last day of 2011 var date = new Date(2012, 0, 0); // remember months are zero based!