這會傳回一個 Day.js 物件,並標記使用 UTC 時間。 這需要 UTC 外掛才能運作 dayjs.extend(utc) var a = dayjs() a.format() //2019-03-06T08:00:00+08:00 a.utc().format() // 2019-03-06T00:00:00Z 傳入 true 會變更時區,但不會變更目前時間。 dayjs('2016-05-03 22:15:01').utc(true).format() // 2016-05-03T22:15:01Z 查看更多關於 UTC 模式 的資訊。