Here's how to create a UTC using Javascript.
function utc() {
var now = new Date();
return new Date(convertDateToUTC(now)).toJSON().toString();
}
function convertDateToUTC(date) {
return new Date(
date.getUTCFullYear(),
date.getUTCMonth(),
date.getUTCDate(),
date.getUTCHours(),
date.getUTCMinutes(),
date.getUTCSeconds());
}
}
Subscribe to new posts
Processing your application
Please check your inbox and click the link to confirm your subscription
There was an error sending the email