sample date
2015-09-10 00:00:00
2015-09-09 00:00:00.000
expect iso date, add time zone
2015-09-10T00:00:00+0800
function convertDate(x){ return x.substring(0,10)+'T'+x.substring(11,19)+"+0800";}
本文共 246 字,大约阅读时间需要 1 分钟。
sample date
2015-09-10 00:00:00
2015-09-09 00:00:00.000
expect iso date, add time zone
2015-09-10T00:00:00+0800
function convertDate(x){ return x.substring(0,10)+'T'+x.substring(11,19)+"+0800";}
转载于:https://www.cnblogs.com/caihemm/p/4822866.html