2016-11-25 36 views

回答

2

使用Get本地時間:

var now = new Date(); 

當地時間轉換成UTC格式:

var UTCFormat = now.toUTCString(); 

,你可以去here瞭解更多關於轉換。