I've looked at a bunch of questions regarding parsing strings into a DateTime object, but none seem to have the same format as I do. The strings that I need to parse into a DateTime object are in this format:
Jun 29 2016 12:57PM
Jan 1 1900 12:00AM
The format I am trying is the following:
DateTime.ParseExact(date, "MMM dd yyyy hh:mmtt", CultureInfo.InvariantCulture)
but this throws a FormatException. Any suggestions?