tags:

views:

46

answers:

1

Hey Guys,

I want to parse the following date format to a DateTime object in C#. 19 Aug 2010 17:48:35 GMT+00:00

How can I accomplish this?

Thanks for your help.

+4  A: 

I'd recommend using DateTime.ParseExact.

DateTime.ParseExact(dateString, "dd MMM yyyy H:mm:ss \\G\\M\\Tzzz", System.Globalization.CultureInfo.InvariantCulture);
mattdekrey
+1 Beat me by a few seconds. Next time!
David Hoerster