Hi! The following code snipped:
DateTime dt = DateTimeFormat.forPattern("ww.yyyy").withLocale(Locale.ENGLISH).parseDateTime("03.2005"); System.err.println(dt.toString()); dt = DateTimeFormat.forPattern("ww.yyyy").withLocale(Locale.ENGLISH).parseDateTime("03.2006"); System.err.println(dt.toString()); dt = DateTimeFormat.forPattern("ww.yyyy").withLocale(Locale.ENGLISH).parseDateTime("03.2007"); System.err.println(dt.toString()); outputs 2004-01-12T00:00:00.000+01:00 2005-01-17T00:00:00.000+01:00 2007-01-15T00:00:00.000+01:00 Why this? Why are the first two parsings off by one year? I've tried it with joda 1.4 release. Thanks! Ciao, Mario ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Joda-interest mailing list Joda-interest@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/joda-interest