Question - What’s wrong with a line like this? DateTime.Parse(myString);?.
Answer -
Therez nothing wrong with this declaration.Converts the specified string representation of a date and time to its DateTime equivalent.But If the string is not a valid DateTime,It throws an exception.