A small change... But why just use a date control.
DateTime dt1; if (DateTime.TryParseExact(date, "MM/dd/yyyy", CultureInfo.InvariantCulture, DateTimeStyles.None, out dt1))
{
Console.WriteLine("it's OK and result is in 'dt'");
}
else
{
Console.WriteLine("it's not OK");
}
Mark as Answer, on the post that helped you !!!.
Reach my blog
D 1981 !