There is no way in Joda-Time to "reverse engineer" a format from a string.
You could start with a list of possible formats, and try each one to see which work and which don't. Stephen 2011/5/2 Matthias Müller <matthias_muel...@tu-dresden.de>: > Hi jodatime folks, > > is there a convenient way to obtain the DateTimeFormat from a dateTime > String (e.g. 2001-01-01)? I have to create a list of valid timestamps > from an initial _baseDate_, and a given increment (e.g. "month"). > The outputs shall be printed later on in the same format as _baseDate_. > > Thanks, > Matthias > > > > ------------------------------------------------------------------------------ > WhatsUp Gold - Download Free Network Management Software > The most intuitive, comprehensive, and cost-effective network > management toolset available today. Delivers lowest initial > acquisition cost and overall TCO of any competing solution. > http://p.sf.net/sfu/whatsupgold-sd > _______________________________________________ > Joda-interest mailing list > Joda-interest@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/joda-interest > ------------------------------------------------------------------------------ WhatsUp Gold - Download Free Network Management Software The most intuitive, comprehensive, and cost-effective network management toolset available today. Delivers lowest initial acquisition cost and overall TCO of any competing solution. http://p.sf.net/sfu/whatsupgold-sd _______________________________________________ Joda-interest mailing list Joda-interest@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/joda-interest