let isToday=(signDate,curDate)=>{
// let curDate = moment().format('YYYY-MM-DD');
if(!isEmpty(signDate)){
let {curYear,curMonth,curDay} = curDate.split('-');
let {signYear,signMonth,signDay} = signDate.split('-');
if(signYear<curYear){
return true;
}else{
if(signMonth<curMonth){
return true;
}else{
if(signDay<curDay){
return true;
}else{return false;
}
}
}
}else{
return true;
}
}
网友评论