科牛

关注

js格式化日期

科牛

关注

阅读 71

2023-04-12


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

相关推荐

zhyuzh3d

js 日期格式化

zhyuzh3d 185 0 0

尤克乔乔

JS~json日期格式化

尤克乔乔 235 0 0

七公子706

JS获取当前格式化日期

七公子706 61 0 0

祈澈菇凉

js格式化日期 js加减日期 js时间运算

祈澈菇凉 77 0 0

西红柿上校

DateTimeFormatter日期格式化

西红柿上校 123 0 0

猎书客er

mysql格式化日期

猎书客er 150 0 0

心如止水_c736

hive 日期格式化

心如止水_c736 69 0 0

猫er聆听没落的旋律

日期格式化类

猫er聆听没落的旋律 72 0 0

NicoalsNC

日期时间格式化

NicoalsNC 134 0 0

ZSACH

SimpleDateFormat 格式化日期

ZSACH 210 0 0

精彩评论(0)

0 0 举报