1.Wed Dec 18 2019 17:30:30 GMT+0800 (中国标准时间)格式转换为yyyy-MM-dd HH:mm:ss格式
var dictTime = new Date("${fns:getDictValue('zgh_seal_apl_1', 'zgh_change_date', '')}");
var changeDate=dictTime.getFullYear() + '-' + (dictTime.getMonth() + 1) + '-' + dictTime.getDate() + ' ' + dictTime.getHours() + ':' + dictTime.getMinutes() + ':' + dictTime.getSeconds();
2.Fri Dec 20 09:10:28 CST 2019 格式转换为yyyy-MM-dd HH:mm:ss格式
添加日期格式化方法:
function dateFormat (date, format) {
date = new Date(date);
date.setHours(date.get