I need to validate a date string for the format dd/mm/yyyy with a regular expresssion.
dd/mm/yyyy
This regex validates dd/mm/yyyy, but not the invalid
try this.
^(0[1-9]|[12][0-9]|3[01])[- /.](0[1-9]|1[012])[- /.](19|20)\d\d$
you can test regular expression at http://www.regular-expressions.info/javascriptexample.html easily.