views:

56

answers:

2

Trying to convert the following but am having difficulty. Can anyone see where I'm going wrong? Any help appreciated thanks.

dateString = "Mon Aug 7 15:32:52 GMT+0900 2007";//Actionscript date string
dateResult = DateTime.ParseExact(dateString, "ddd MMM d HH:mm:ss G'M'Tzzz yyyy",
                                  System.Globalization.CultureInfo.InvariantCulture);

Getting the following error:

System.FormatException: String was not recognized as a valid DateTime because the day of week was incorrect..

+4  A: 

August 7, 2007 was a Tuesday.

DaveE
Just got the dates I was given - didn't think to check. Thanks!
Chin
+1  A: 

well, the 7 august 2007 was a tuesday is suppose :-)

henchman