The "GMT" string cannot be parsed. The rest can be parsed using a
pattern, something like "MMM d',' yyyy HH:mm:ss" (untested)

DateTimeFormatter f = DateTimeFormat.forPattern(pattern)
DateTime dt = f.parseDateTime(text)

Stephen


On 8 December 2011 18:47, Stephane Fellah <fella...@gmail.com> wrote:
> Hi,
>
> I am trying to parse the following date format Dec 8, 2011 18:42:03 GMT, but
> cannot figure out which DateTimeFormatter to use ? I would appreciate is
> someone could provide snippet of code to perform this parsing.
>
> Sincerely
> Stephane
>
> ------------------------------------------------------------------------------
> Cloud Services Checklist: Pricing and Packaging Optimization
> This white paper is intended to serve as a reference, checklist and point of
> discussion for anyone considering optimizing the pricing and packaging model
> of a cloud services business. Read Now!
> http://www.accelacomm.com/jaw/sfnl/114/51491232/
> _______________________________________________
> Joda-interest mailing list
> Joda-interest@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/joda-interest
>

------------------------------------------------------------------------------
10 Tips for Better Server Consolidation
Server virtualization is being driven by many needs.  
But none more important than the need to reduce IT complexity 
while improving strategic productivity.  Learn More! 
http://www.accelacomm.com/jaw/sdnl/114/51507609/
_______________________________________________
Joda-interest mailing list
Joda-interest@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/joda-interest

Reply via email to