how to get current date in +00:00 using javascript code example
Example 1: javascript get midnight tonight
var d = new Date();
d.setHours(24,0,0,0); // next midnight
Example 2: return a date time object in yyyy-mm-dd hr:min:sec
const str = (new Date()).toISOString().slice(0, 19).replace(/-/g, "/").replace("T", " ");