Answers for "how to get current date in +00:00 using javascript"

2

javascript get midnight tonight

var d = new Date();
d.setHours(24,0,0,0); // next midnight
Posted by: Guest on July-17-2019
0

return a date time object in yyyy-mm-dd hr:min:sec

const str = (new Date()).toISOString().slice(0, 19).replace(/-/g, "/").replace("T", " ");
Posted by: Guest on September-27-2020

Code answers related to "how to get current date in +00:00 using javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language