0
我有這個字符串「Mon Oct 21 2013 21:00:00 GMT-0300(ART)」,我需要使用它將它轉換爲時區(GMT-0300) moment.js(不是moment-timezone.js)如何獲得timezone沒有時間timezone.js
我正在這樣做,但它返回同一小時。
var startDateTime = moment(date).format('YYYY-MM-DD HH:mm Z'),
startMoment = moment.parseZone(startDateTime).zone();
console.log(moment(startDateTime).zone(startMoment).format("YYYY-MM-DD HH:mm"));
任何幫助?
謝謝!問題是GMT-0300 – jgauna