Google apps script ISO 8601 UTC时间中的当前时间戳(即:2013-11-03T00:45:54+;02:00)
有人能帮我格式化ISO 8601 UTC时间的时间戳吗 我希望日期的格式如下Google apps script ISO 8601 UTC时间中的当前时间戳(即:2013-11-03T00:45:54+;02:00),google-apps-script,date-formatting,iso8601,Google Apps Script,Date Formatting,Iso8601,有人能帮我格式化ISO 8601 UTC时间的时间戳吗 我希望日期的格式如下2020-10-03T00:45:54+02:00 我已经尝试过这个应用程序脚本 Utilities.formatDate(new Date(), "UTC", "yyyy-MM-dd'T'HH:mm:ssZZZ");
2020-10-03T00:45:54+02:00
我已经尝试过这个应用程序脚本
Utilities.formatDate(new Date(), "UTC", "yyyy-MM-dd'T'HH:mm:ssZZZ");
它将获得2020-10-03T08:50:18+0000的输出
我希望时区的格式如下:分钟
/**/console.config({maximize:true,timeStamps:false,autoScroll:false})/**/
console.log(新日期().toISOString())