How to convert the below string to DateTime in C#?
DateTime
Mon Apr 22 07:56:21 +0000 2013
When i tried the code with
Use DateTime.ParseExact like:
DateTime.ParseExact
string str = "Mon Apr 22 07:56:21 +0000 2013"; DateTime dt = DateTime.ParseExact(str, "ffffd MMM d HH:mm:ss +0000 yyyy", CultureInfo.InvariantCulture);