Parsing RFC1123 formatted dates in C#, .Net 4.0

Posted by Ruby on Stack Overflow See other posts from Stack Overflow or by Ruby
Published on 2010-04-05T18:50:58Z Indexed on 2010/04/05 18:53 UTC
Read the original article Hit count: 249

Filed under:
|
|

Hello,

I am trying to parse dates in RFC1123 format (Thu, 21 Jan 2010 17:47:00 EST).

Here is what I tried but none worked:

DateTime Date = DateTime.Parse(dt);
DateTime Date = DateTime.ParseExact(dt, "r", null);

Could you please help me out with this?

Thanks, Ruby :)

© Stack Overflow or respective owner

Related posts about c#

Related posts about datetime