摘要: 第一种适用于:20100823这种字符串格式function dateValid(){ var bd = document.getElementById("sStartSaveDate").value; var beginDate = new Date(bd.replace(/^(\d{4})(\d{2})(\d{2})$/,"$1/$2/$3")); var ed = document.getElementById("sEndSaveDate").value; var endDate = new Date(ed.replace(/^ 阅读全文
posted @ 2012-09-12 16:20 坏混混 阅读(2550) 评论(0) 推荐(0) 编辑