You can use the static DateTime.Parse or DateTime.ParseExact and catch any exceptions.
System.DateTime myDateTime;
bool isValid = true;
try
{
myDateTime = System.DateTime.Parse(strMyDateTime);
}
catch (Exception e)
{
isValid = false;
}
Share with