date validation?

  • Thread starter Thread starter Null
  • Start date Start date
N

Null

How to write an IsDate function that actually checks for a particular date
format?

Using try-catch on Convert.ToDateTime(sDate) doesn't catch invalid entry
(i.e. 5/2000).....I want the dates to be input as mm/dd/yyyy OR m/d/yyyy OR
m/d/yy (etc.)....

Any thoughts?
 
Back
Top