changeDateFormatNodate: function (cellval) { var date = new Date(parseInt(cellval.replace("/Date(", "").replace(")/", ""), 10)); var hour = date.getHours() < 10 ? "0" + date.getHours() : date.getHours()…
1,时间格式化,分隔符为 “—” // 日期格式化 function myformatter(date){ var y = date.getFullYear(); var m = date.getMonth()+1; var d = date.getDate(); return y+'-'+(m<10?('0'+m):m)+'-'+(d<10?('0'+d):d); }; function myparser(s){ var t = Date.parse(s); if (!isNaN(t…