check this link , it will help you to get many ideas :
system.datetime.date
and you can use this codes in c# too .:
DateTime dt = DateTime.Parse("02/22/2012");
if (dt.ToString("mm/dd/yyyy") == dt.GetDateTimeFormats()[3])
MessageBox.Show(dt.ToString());
else
MessageBox.Show(dt.ToString("Invalid Date. Only number and forward slash (/) characters are allowed. The valid format is MM/DD/YYYY."));