10. js时间格式转换

{
   field : 'CREATE_TIME',
   width : fixWidth(0.10),
   title : '创建时间',
   align : 'center',
   hidden: true,
   formatter : function(value,rowData, index) {
      if(!isEmpty(value)){
         var date = new Date(value);
         return DateFormat(date,'yyyy-MM-dd hh:mm:ss');
      }
      return value;
   }
}

原文地址:https://www.cnblogs.com/zkx4213/p/6928832.html