G
Guest
Is there a way using DateTime.Parse to validate a date in the following format?
mm/dd/yyyy
Thanks
mm/dd/yyyy
Thanks
dwight said:Is there a way using DateTime.Parse to validate a date in the
following format?
mm/dd/yyyy
{
DateTime a = DateTime.Parse("01/10/200a");
MessageBox.Show("Date is good!");
}
catch (Exception ex)
{
MessageBox.Show("Date is not in proper format.");
}