javascript date object in utc code example
Example 1: javascript date to utc format
new Date().toISOString()
> '2012-11-04T14:51:06.157Z'
Example 2: javascript today date in epoch
const start = Date.now();
/*gives the number of milliseconds elapsed since January 1, 1970 00:00:00 UTC.*/