Set date to use UTC time zone
by David Storey
JavaScript
var utc = new Intl.DateTimeFormat("en", {
timeZone: "utc",
hour: "numeric"
});
console.log(utc.format(new Date()));
by David Storey
var utc = new Intl.DateTimeFormat("en", {
timeZone: "utc",
hour: "numeric"
});
console.log(utc.format(new Date()));