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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top