You can parse into a MutableDateTime, which allows you to setup a base date on the mutable before parsing. Stephen
On 24 August 2010 00:55, TomC <tomc.n...@pnl.gov> wrote: > Good day list! > > I'm parsing dates that follow the pattern "MMM dd HH:mm:ss". Note that > the pattern does not include a year specifier. > > The returned DateTime specifies 1970 as the year. This is the > documented behavior of joda time. > > Is there a way to supply a context to the parser so that the dates can > be properly interpreted? > > ~ Tom > > > ------------------------------------------------------------------------------ > Sell apps to millions through the Intel(R) Atom(Tm) Developer Program > Be part of this innovative community and reach millions of netbook users > worldwide. Take advantage of special opportunities to increase revenue and > speed time-to-market. Join now, and jumpstart your future. > http://p.sf.net/sfu/intel-atom-d2d > _______________________________________________ > Joda-interest mailing list > Joda-interest@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/joda-interest > ------------------------------------------------------------------------------ Sell apps to millions through the Intel(R) Atom(Tm) Developer Program Be part of this innovative community and reach millions of netbook users worldwide. Take advantage of special opportunities to increase revenue and speed time-to-market. Join now, and jumpstart your future. http://p.sf.net/sfu/intel-atom-d2d _______________________________________________ Joda-interest mailing list Joda-interest@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/joda-interest