javascript date to utc 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: javascript date convert to unix
new Date('2012.08.10').getTime() / 1000