Quick example of validating a date on the client-side without regex.
validDate = function (str) { var valid = false, d = new Date(str), mm = d.getMonth() + 1, dd = d.getDate(), yyyy = d.getFullYear(); if (mm < 10) { mm = "0".concat(mm); } if (dd < 10) { dd = "0".concat(dd); } if ([mm, dd, yyyy].join("/") === str) { valid = true; } return valid;};/*validDate("02/29/2010"); //falsevalidDate("02/29/2012"); //truevalidDate("02/29/2012", true); //falsevalidDate("12/12/2010"); //true*/