Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript validate date

var date_regex = /^(0[1-9]|1[0-2])/(0[1-9]|1d|2d|3[01])/(19|20)d{2}$/;
if (!(date_regex.test(testDate))) {
    return false;
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #javascript #validate #date
ADD COMMENT
Topic
Name
2+5 =