笨蛋在微笑
全部博文(23)
2011年(2)
2010年(21)
分类: Java
2010-11-11 11:26:04
var cDate = new Date();var today = (cDate.getMonth() + 1) + "-" + cDate.getDate()+ "-" + cDate.getFullYear();var best_time = document.getElementById("best_time").value;best_time = best_time.split("-"); best_time = best_time[1] + "-" + best_time[2] + "-" + best_time[0]; if (best_time != "" && Date.parse(best_time) < Date.parse(today)){ validator.addErrorMsg("错误的要求送货时间");}
上一篇:JavaScript的各种计时器
下一篇:java得到当前时间
登录 注册