Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

regex for date mm/dd/yyyy

function validateDate(testdate) {
    var date_regex = /^d{2}/d{2}/d{4}$/ ;
    return date_regex.test(testdate);
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #regex #date
ADD COMMENT
Topic
Name
2+6 =