//活动时间计算
// eslint-disable-next-line @typescript-eslint/camelcase
time_start(formDatatime) {
const date = new Date(formDatatime.replace(/-/g, '/')) //开始时间
formDatatime = date.getTime() //数据时间
// eslint-disable-next-line no-var
//formDatatime = formDatatime.valueOf()
const formatDateTime = new Date().valueOf() //当前时间
if (formDatatime - formatDateTime > 0) {
return true //大于0的话就是传的时间在当前时间之后
} else {
return false
}
}
网友评论