validating a Date

  • Thread starter Thread starter Chris
  • Start date Start date
C

Chris

Hi,

how do I validate a date using a RegularExpression ?

e.g. 05/20/2004
(May 20, 2004)

What is format to be used ?

Thanks

Chris
 
Chris said:
Hi,

how do I validate a date using a RegularExpression ?

e.g. 05/20/2004
(May 20, 2004)

What is format to be used ?

Thanks

Chris

Is there a particular reason that you have to use RegEx? If not, look into
Date.Parse or Convert.ToDate to do the validation for you.
 

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

Back
Top