1,数据库存储格式
**
**
2,原来格式
**
**
3,修改后格式
**
**
4,使用代码
**
{field: 'csDate', title: '出生日期', width: 150, align: 'left', halign: 'center',templet(row){
var lw = new Date(row.csDate);
var lastY = lw.getFullYear();
var lastM = lw.getMonth()+1;
var lastD = lw.getDate();
var lastH = lw.getHours();
var lastF = lw.getMinutes();
var lastS = lw.getSeconds();
var startdate=lastY+"-"+(lastM<10 ? "0" + lastM : lastM)+"-"+(lastD<10 ? "0"+ lastD : lastD)+" "+(lastH<10 ? "0"+ lastH : lastH)+":"+(lastF<10 ? "0"+ lastF : lastF)+":"+(lastS<10 ? "0"+ lastS : lastS);
return startdate;
}},