js中处理:
方法一:
var time="2018-05-09T08:04:02.000+0000";
var a = new Date(time);
var times=a.getFullYear()+'-' +(a.getMonth()+1<10?"0"+(a.getMonth()+1):a.getMonth()+1)+'-'+(a.getDate()<10?"0"+a.getDate():a.getDate())+' '+(a.getHours()<10?"0"+a.getHours():a.getHours()) + ':'+(a.getMinutes()<10?"0"+a.getMinutes():a.getMinutes()) + ':' + (a.getSeconds()<10?"0"+a.getSeconds():a.getSeconds());
方法二:
var time="2018-05-09T08:04:02.000+0000";
var times= new Date(+new Date(time)+8*3600*1000).toISOString().replace(/T/g,' ').replace(/\.[\d]{3}Z/,'');