Monday, May 20, 2024
 Popular · Latest · Hot · Upcoming
97
rated 0 times [  104] [ 7]  / answers: 1 / hits: 60733  / 15 Years ago, thu, december 17, 2009, 12:00:00

How can I obtain the last day of the month with the timestamp being 11:59:59 PM?


More From » jquery

 Answers
3

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));

[#98046] Monday, December 14, 2009, 15 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
luna

Total Points: 698
Total Questions: 114
Total Answers: 93

Location: Israel
Member since Wed, Apr 14, 2021
3 Years ago
;