javascript date to utc date code example
Example 1: javascript date to utc format
new Date().toISOString()
> '2012-11-04T14:51:06.157Z'
Example 2: javascript creeate utc date
const now = new Date().toISOString();
console.log(now)
new Date().toISOString()
> '2012-11-04T14:51:06.157Z'
const now = new Date().toISOString();
console.log(now)