js获取ISO8601规范时间
程序员文章站
2023-11-07 19:43:22
var d = new Date(); d.setHours(d.getHours(), d.getMinutes() - d.getTimezoneOffset()); console.log(d.toISOString()) ......
var d = new date(); d.sethours(d.gethours(), d.getminutes() - d.gettimezoneoffset()); console.log(d.toisostring())