How can I obtain the last day of the month with the timestamp being 11:59:59 PM?
var month = 1; // 1 for January var d = new Date(2015, month, 0); console.log(d); // last day in January