Issues converting to DateTime format

  • Thread starter Thread starter mazdotnet
  • Start date Start date
M

mazdotnet

Hi,

I'm having a hard time parsing the following date/time that I get in
an XML call to a third party service provider.

12 Jun 2007 08:00 EST5EDT

I like to assign it to DateTime and can't find anything on Google

Thank you
Maz
 
Off the top of my head (so excuse syntax errors and format string
specifics, etc), can't you just use ParseExact:

string myDate = "12 Jun 2007 08:00 EST5EDT";
DateTime dt = DateTime.ParseExact(myDate, "{dd MMM yyyy hh:mm}");

Dunc
http://www.fluideating.co.uk
 
Back
Top