Validate date format mm/dd/yyyy by using jquery validation library
First add the custom method to the validation library as below. Can you put this code in your jquery validation file or in your page where you want to validate…
First add the custom method to the validation library as below. Can you put this code in your jquery validation file or in your page where you want to validate…
<script type="text/javascript"> function isValideDate(datavalue){ var regexValidDate = /^(?:(0|1)(0||3)(19|20){2})$/; return regexValidDate.test(datavalue); } var dateToCheck = '06/01/2011', if(isValideDate(dateToCheck)){ alert("Given date is valid as per the format of MM/dd/YYYY"); }else{ alert("Given date is…