Parsing RFC 2822 date in JAVA

Posted by DutrowLLC on Stack Overflow See other posts from Stack Overflow or by DutrowLLC
Published on 2010-03-16T22:08:40Z Indexed on 2010/03/16 22:11 UTC
Read the original article Hit count: 462

Filed under:
|
|
|

I need to parse an RFC 2822 string representation of a date in Java. An example string is here:

Sat, 13 Mar 2010 11:29:05 -0800

It looks pretty nasty so I wanted to make sure I was doing everything right and would run into weird problems later with the date being interpreted wrong either through AM-PM/Military time problems, UTC time problems, problems I don't anticipate, etc...

Thanks!

© Stack Overflow or respective owner

Related posts about java

Related posts about rfc2822