js UTCTimestamp code example
Example 1: javascript date to utc format
new Date().toISOString()
> '2012-11-04T14:51:06.157Z'
Example 2: how to get utc time in angular
var d = new Date();
var n = d.getUTCDate();
new Date().toISOString()
> '2012-11-04T14:51:06.157Z'
var d = new Date();
var n = d.getUTCDate();