-1
您能否建議最簡單的方法來轉換日期時間「14/03/2016下午2點25分15秒」,以ISO格式 「2016-03-14T14:25:15」 在JavaScript在javascript中將日期時間轉換爲ISO格式(例如,使用moment.js)
感謝
您能否建議最簡單的方法來轉換日期時間「14/03/2016下午2點25分15秒」,以ISO格式 「2016-03-14T14:25:15」 在JavaScript在javascript中將日期時間轉換爲ISO格式(例如,使用moment.js)
感謝
var date = moment();
date.toISOString();
['moment.utc ()'](http://momentjs.com/docs/#/manipulating/utc/) – Tushar
http://momentjs.com/docs/#/displaying/as-iso-string/ –