标签:
function checkDate(){
//replace(/\-/g, "\/")是根据验证表达式把日期转化成长日期格式
var sDate = new Date(document.getElementById_x("datetimepickerStart").value.replace(/\-/g, "\/"));
var eDate = new
Date(document.getElementById_x("datetimepickerEnd").value.replace(/\-/g,
"\/"));
if(sDate > eDate)
{
alert("结束日期不得小于开始日期!");
return false;
}
return
true;
}
标签:
原文地址:http://www.cnblogs.com/ttsy/p/4195260.html