如何获取当前日期的祖鲁时区表示

How to get a zulu timezone representation of the current date

我想获取 ISO 8601 (rfc3339) 的当前日期,祖鲁语格式:

2015-10-13T10:26:43Z

如何在 Javascript 中执行此操作?

您可以使用toISOString()

var isoDate = new Date().toISOString();
console.log(isoDate);

希望对您有所帮助,