javascript date string to utc code example
Example 1: javascript date to utc format
new Date().toISOString()
> '2012-11-04T14:51:06.157Z'
Example 2: parse date from string in js
Date.parse(dateString)
//dateString is like 2020-10-10 / 2020-10-10T10:20:20