var regExpDateofBirth = /^(0[1-9]|[12][0-9]|3[01])[/ . -](0[1-9]|1[012])[/ . -](19|20)\d\d*/; if (!regExpDateofBirth.test($('#txtDOB').val())) { alert("Textbox value must be in YY/MM/DD.. Format "); return false; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)