Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

regular expression for date

Status
Not open for further replies.

CrystalUser1

Programmer
Sep 16, 2004
138
US
I have a regular expression for date validation like this

^(0?[0-9]|1[012])/(0?[0-9]|[12][0-9]|3[01])/(19|20)?\\d\\d$

It allows 1/2/04 but not 01/02/04.

Help!!
 
got it!
answer is
^(0[0-9]|1[012])/(0[0-9]|[12][0-9]|3[01])/(19|20)?\\d\\d$
 
For future reference: is a great resource for regular expressions.

ud


tkc
 
Where to set up the CopyLocal property for .Net project?
pls help!!!
 
Right click on an item in the Project References and choose Properties and there you will see CopyLocal which is set by default to true if the reference is part of the .NET and set to true in the case for example, that is your dll and you want to be copied locally to the current project.
obislavu
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top