task#13769,时间测试

This commit is contained in:
2024-05-15 19:59:31 +08:00
parent 82ddcf67d6
commit 8af98c5ef3
2 changed files with 6 additions and 6 deletions

View File

@ -5,8 +5,8 @@ const formatDate = date => {
const day = tempDate.getDate()
return `${[year, month, day].map(formatNumber).join('-')}`
}
const formatDate1 = date => {
let tempDate = new Date(date)
const formatDate1 = () => {
let tempDate = new Date()
const year = tempDate.getFullYear()
const month = tempDate.getMonth() + 1
const day = tempDate.getDate()