Answers for "how to get start and end of day in javascript?"

6

get start of day javascript

var start = new Date();
start.setHours(0,0,0,0);

var end = new Date();
end.setHours(23,59,59,999);

alert( start.toUTCString() + ':' + end.toUTCString() );
Posted by: Guest on May-26-2020
1

javascript end of day

var start = new Date();
start.setHours(0,0,0,0);

var end = new Date();
end.setHours(23,59,59,999);

alert( start.toUTCString() + ':' + end.toUTCString() );
Posted by: Guest on February-10-2021

Code answers related to "how to get start and end of day in javascript?"

Code answers related to "Javascript"

Browse Popular Code Answers by Language