I suspect it's the good old "january is 0, december is 11" behaviour of the JDK that had you fooled. BTW, instead of going via milliseconds, you can pass a java.util.Calendar instance directly into the LocalDate(Object) constructor for the same effect with less code.
Barend On Sun, Jun 1, 2008 at 8:02 AM, Michael Mehrle <[EMAIL PROTECTED]> wrote: > What is the month? The constructor only allows a day of month of 31 for > months which have 31 days. > >> Doesn't make sense to me - why does the constructor not allow a 31 > date? >> >> That's how I'm setting it: >> >> *new LocalDate(cal.get(Calendar.YEAR), cal.get(Calendar.MONTH), >> cal.get(Calendar.DAY_OF_MONTH));* ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Joda-interest mailing list Joda-interest@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/joda-interest