-
Leif Christian posted an update 2 years, 11 months ago
var isoDateTime = new Date(
date.getTime() – date.getTimezoneOffset() * 60000
).toISOString();let timeString = isoDateTime.slice(0, 19).replace(“T”, ” “).replace(“Z”, “”);
javascript date time