Return to Snippet

Revision: 51596
at September 29, 2011 01:17 by ashsa


Initial Code
// 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!

Initial URL

                                

Initial Description
Using the day "zero" of the next month...

Initial Title
last day of a month

Initial Tags
date

Initial Language
JavaScript