Howdy folks,

I have a string variable that should have data in it as 06/12/2007 (MM/DD/YYYY). basically a date. how can I validate if it is in the correct format. If the string variable has data in any other format say 06/12/07 (MM/DD/YY), it should throw an error.

How can I do that in C#?
thanks
nath