0
点赞
收藏
分享

微信扫一扫

js格式化日期

科牛 2023-04-12 阅读 71


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 -->

举报

相关推荐

0 条评论