new date in utc js 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)
Example 3: how to get utc time in angular
var d = new Date();
var n = d.getUTCDate();