Regular Expression Date Validation

K

Ken

What is the regular expression for a date format of mm/dd/yy? This is the
closest I have come

ValidationExpression = "\d{1,2}\/\d{1,2}\/\d{2}"

The problem is that it is allowing any two digit month, day and year. Should
I use both the regular expression and the CustomValidator controls with
script for the date validation?

Thank you,
Ken
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,768
Messages
2,569,574
Members
45,049
Latest member
Allen00Reed

Latest Threads

Top