String was not recognized as a valid DateTime ParseExact
I have a datetime string input to my application, the value is
11/22/2011 12:00:00 AM
when i call
I get a Formatexception, is there a way like a regex to find the format of the datetime and then create a dateformat and then apply so that i get back the correct datetime after parsing the string back to DateTime.