📜  获取iso日期javascript代码示例

📅  最后修改于: 2022-03-11 15:02:55.003000             🧑  作者: Mango

代码示例3
const myDate = "2012-10-16T11:00:28.556094Z";
const time = new Date(myDate).toLocaleTimeString('en',
                 { timeStyle: 'short', hour12: false, timeZone: 'UTC' });

// Output:  "11:00"