Converting to DateTime

  • Thread starter Thread starter maflatoun
  • Start date Start date
M

maflatoun

Hi,

I'm having a hard time parsing the following date/time that I get in
an XML RPC 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
M.
 
DateTime dt = DateTime.Parse( "12 Jun 2007 08:00 EST5EDT".Substring( 0, "12
Jun 2007 08:00 EST5EDT".LastIndexOf( ' ' ) ) );
 
Hi,

I'm having a hard time parsing the following date/time that I get in
an XML RPC 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
M.

Please do a proper cross post instead of posting the same question as
separate threads in separate groups.

You can use the DateTime.ParseExact to parse any date format that you
can specify.
 
Back
Top