You should use
DateTime.ParseExact[
^] to convert it the string representation of a date and time to its DateTime equivalent using the specified format and culture-specific format information.
Alternatively, you can use
DateTime.TryParseExact[
^] which will return a value that indicates whether the conversion succeeds.