记得日期控件设置格式 为返回字符
var str=this.getValue();
if (str>aa) {
alert("不可以超过当前日期");
this.setValue(null);
}
测试2.cpt
话说控件可以设置结束日期啊,没必要用js