【修改】 修改上传报告 修改流程中心(没完成)
This commit is contained in:
@@ -33,3 +33,14 @@ export function formatDate (value, fmt) {
|
||||
return value.substr(0, fmt.length)
|
||||
}
|
||||
}
|
||||
export function formatDate2 (value, fmt) {
|
||||
let dateObject = new Date(value);
|
||||
let year = dateObject.getFullYear();
|
||||
let month = dateObject.getMonth() + 1;
|
||||
let day = dateObject.getDate();
|
||||
let hours = dateObject.getHours();
|
||||
let minutes = dateObject.getMinutes();
|
||||
let seconds = dateObject.getSeconds();
|
||||
|
||||
return `${year}-${month}-${day} ${hours}:${minutes}:${seconds}`;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user