Can someone tell me how should I approach converting the following format to a proper DateTime object?
DateTime
11:50:46 AM on Wednesday, October 19, 201
string s = "11:50:46 AM on Wednesday, October 19, 2011"; DateTime dateTime = DateTime.ParseExact(s, "hh:mm:ss tt on ffffdd, MMMM dd, yyyy", CultureInfo.InvariantCulture);