Sunday, August 19, 2012

DATE VALIDATION USING JAVASCRIPT

function isValidDate(sText) {
04          var reDate = /(?:0[1-9]|[12][0-9]|3[01])\/(?:0[1-9]|1[0-2])\/(?:19|20\d{4})/;
05         return reDate.test(sText);
06        }

No comments: