//var time=document.getElementById('begin_time').value;
var time = '2010-12-10 11:12';
time = time.replace("-","/");//替换字符,变成标准格式
var beginTime = new Date(Date.parse(time));
var endTime = new Date();//取今天的日期
alert(beginTime);
alert(endTime);
if(beginTime>endTime){
alert("结束时间要大于开始时间!");
}
08-26
07-27