问题
I would like to get the current date in ISO 8601 (rfc3339), Zulu format:
2015-10-13T10:26:43Z
How can I do this in Javascript?
回答1:
You can use toISOString()
var isoDate = new Date().toISOString();
console.log(isoDate);
Hope it helps,
来源:https://stackoverflow.com/questions/33100656/how-to-get-a-zulu-timezone-representation-of-the-current-date