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

No members online now.

Forum statistics

Threads
473,997
Messages
2,570,240
Members
46,830
Latest member
HeleneMull

Latest Threads

Top