function checkAheadNowDate(){
var now = new Date();
var year = new Date().getFullYear();
var month = new Date().getMonth()+1;
var Minutes=now.getMinutes();
var Seconds=now.getSeconds();
var Hours = now.getHours();
if (month<10){month="0"+month;}
var today=new Date().getDate();
if (today<10){ today="0"+today; }
if(Minutes<10){Minutes="0"+Minutes;}
if(Hours<10){Hours="0"+Hours;}
if (Seconds<10){ Seconds="0"+Seconds; }
var nowTime = year + "-" + month + "-" + today+' '+Hours + ":" + Minutes+":"+ Seconds;
if (document.all('recordTask.beginTime').value < nowTime) {
alert("开始时间必须晚于当前时间");
return false;
}
return true;
}
var now = new Date();
var year = new Date().getFullYear();
var month = new Date().getMonth()+1;
var Minutes=now.getMinutes();
var Seconds=now.getSeconds();
var Hours = now.getHours();
if (month<10){month="0"+month;}
var today=new Date().getDate();
if (today<10){ today="0"+today; }
if(Minutes<10){Minutes="0"+Minutes;}
if(Hours<10){Hours="0"+Hours;}
if (Seconds<10){ Seconds="0"+Seconds; }
var nowTime = year + "-" + month + "-" + today+' '+Hours + ":" + Minutes+":"+ Seconds;
if (document.all('recordTask.beginTime').value < nowTime) {
alert("开始时间必须晚于当前时间");
return false;
}
return true;
}