0
我有一個日期格式:如何轉換其他格式的日期?
Mon Oct 19 2015 00:00:00 GMT+0200 (ora legale Europa occidentale)
我的目標是轉換日期爲這種格式:
2015-10-19T00:00:00
如何我能實現這個結果呢?
UPDATE
var currDateEnd = $('#calendar').fullCalendar('getView').start;
currDateEnd.toISOString();
console.log("currDateEnd iso => ", currDateEnd.toDate().toDateString());
我申請你的解決方案,但沒有工作的結果是:週一至2015年10月19日和小時丟失 – Dillinger
是youusing momentjs?分享一些代碼 – Diptox
我已經更新了我的問題,.start的結果是Mon Oct 19 2015 00:00:00 GMT + 0200(ora legale Europa occidentale) – Dillinger