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
You have basically two options for this. DateTime.Parse() and DateTime.ParseExact(). like
DateTime parseexactdt = DateTime.ParseExact("Mon Apr 22 07:56:21 +0000 2013", "ffffd MMM d HH:mm:ss +0000 yyyy", CultureInfo.InvariantCulture);