function checkdate()
)|([2-9]/d))(-)(10|12|0?[13578])(-)(3[01]|[12][0-9]|0?[1-9])$)|(^((1[8-9]/d)|([2-9]/d))(-)(11|0?[469])(-)(30|[12][0-9]|0?[1-9])$)|(^((1[8-9]/d)|([2-9]/d))(-)(0?2)(-)(2[0-8]|1[0-9]|0?[1-9])$)|(^([2468][048]00)(-)(0?2)(-)(29)$)|(^([3579][26]00)(-)(0?2)(-)(29)$)|(^([1][89][0][48])(-)(0?2)(-)(29)$)|(^([2-9][0-9][0][48])(-)(0?2)(-)(29)$)|(^([1][89][2468][048])(-)(0?2)(-)(29)$)|(^([2-9][0-9][2468][048])(-)(0?2)(-)(29)$)|(^([1][89][13579][26])(-)(0?2)(-)(29)$)|(^([2-9][0-9][13579][26])(-)(0?2)(-)(29)$))/);
var enddate = document.getelementbyid("txtenddate").value;
var result2 = enddate.match(/((^((1[8-9]/d)|([2-9]/d))(-)(10|12|0?[13578])(-)(3[01]|[12][0-9]|0?[1-9])$)|(^((1[8-9]/d)|([2-9]/d))(-)(11|0?[469])(-)(30|[12][0-9]|0?[1-9])$)|(^((1[8-9]/d)|([2-9]/d))(-)(0?2)(-)(2[0-8]|1[0-9]|0?[1-9])$)|(^([2468][048]00)(-)(0?2)(-)(29)$)|(^([3579][26]00)(-)(0?2)(-)(29)$)|(^([1][89][0][48])(-)(0?2)(-)(29)$)|(^([2-9][0-9][0][48])(-)(0?2)(-)(29)$)|(^([1][89][2468][048])(-)(0?2)(-)(29)$)|(^([2-9][0-9][2468][048])(-)(0?2)(-)(29)$)|(^([1][89][13579][26])(-)(0?2)(-)(29)$)|(^([2-9][0-9][13579][26])(-)(0?2)(-)(29)$))/);
if(result1==null)
if(result2==null)
}
js驗證日期格式
下面介紹兩種js驗證的方式 方法一 js html div asp textbox id textbox1 runat server onblur check asp textbox asp button id button1 runat server text button div 上面的方法是驗...
js驗證日期格式
下面介紹兩種js驗證的方式 方法一 js html div asp textbox id textbox1 runat server onblur check asp textbox asp button id button1 runat server text button div 上面的方法是驗...
js驗證日期格式的函式
下面介紹兩種js驗證的方式 方法一 js html div asp textbox id textbox1 runat server onblur check asp textbox asp button id button1 runat server text button div 上面的方法是驗...