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 TouchToneTommy 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 YYYY-MM-DD

Status
Not open for further replies.

abs2003

MIS
Aug 31, 2004
80
US
Hi all,
How do I check date such as '2005-08-11' using Regular Expression?

Thank you,
abs
 
Never mind. I got it.

Code:
Dim test As New Regex("^[\d]{4}[-\s]?[\d]{2}[-\s]?[\d]{2}$", RegexOptions.Singleline Or RegexOptions.Compiled)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top