Issues converting to DateTime format

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
 
D

Dunc

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
 

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

Members online

Forum statistics

Threads
473,769
Messages
2,569,577
Members
45,054
Latest member
LucyCarper

Latest Threads

Top