I get a json date from a webservice that i need to parse manualy and the date looks like this: "Fri, 06 Nov 2009 00:00:00 -0800"
How would i parse this into a datetime object?
I guess i should use DateTime.ParseExact but what do i feed into it.
I get a json date from a webservice that i need to parse manualy and the date looks like this: "Fri, 06 Nov 2009 00:00:00 -0800"
How would i parse this into a datetime object?
I guess i should use DateTime.ParseExact but what do i feed into it.
var date = DateTime.Parse("Fri, 06 Nov 2009 00:00:00 -0800");
works fine.
I ran this code and it worked fine:
string date = "Fri, 06 Nov 2009 00:00:00 -0800";
DateTime dt = DateTime.Parse(date);