passer1991

js格式化日期

function formatterdate(val, row) {
var date = new Date(val);
return date.getFullYear() + '-' + (date.getMonth() + 1) + '-' + date.getDate();
}

<th field="KSSJ" width="50">开始时间</th><#--  formatter=formatterdate -->

posted on 2013-08-06 22:25  passer1991  阅读(109)  评论(0编辑  收藏  举报

导航