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