Groups | Blog | Home
all groups > asp.net webcontrols > june 2003 >

asp.net webcontrols : Regular Expression Date Validation


Ken
6/27/2003 10:13:03 AM
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


Kenny
6/28/2003 2:20:43 AM
build a calendar control to make your life easier, somemore it is more user
friendly

[quoted text, click to view]

AddThis Social Bookmark Button