Yes, that's how I wound up solving it. Thank you for your input though.

Michael

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of W.B.
Garvelink
Sent: Monday, June 02, 2008 11:59 AM
To: Discussion of the Joda project
Subject: Re: [Joda-interest] Error with LocalDate constructor

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

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Joda-interest mailing list
Joda-interest@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/joda-interest

Reply via email to