Have you checked DateTime.TryParse() method? This method will check if the Datetime entered is a valid date/time or not.