How can I obtain the last day of the month with the timestamp being 11:59:59 PM?
var d = new Date(); m = d.getMonth(); //current month y = d.getFullYear(); //current year alert(new Date(y,m,1)); //this is first day of current month alert(new Date(y,m+1,0)); //this is last day of current month