UTC vs ISO format for time
问题 I'm trying to understand the difference between UTC and ISO formats and when to use what when transferring messages between servers. So When I try the following this is what I get new Date().toISOString() "2019-11-14T00:55:31.820Z" new Date().toUTCString() "Thu, 14 Nov 2019 00:55:16 GMT" I understand the ISO format and its a standard used to represent time, but what is the purpose of UTC and where would I use them? 回答1: tl;dr Always use ISO 8601 format: 2019-11-14T00:55:31.820Z Avoid the