How can I obtain the last day of the month with the timestamp being 11:59:59 PM?
This will give you last day of current month.
var t= new Date(); alert(new Date(t.getFullYear(), t.getMonth() + 1, 0, 23, 59, 59));