2
I have a string
in the following format: 16Mar2009(mon), but I’m not getting to convert into datetime
.
string format = "dMMMyyyy(dd)";
DateTime dt = DateTime.ParseExact("16Mar2009(mon)", format,CultureInfo.InvariantCulture);
Returns the following error:
String was not recognized as a Valid Datetime.