I figured it out thanks - the problems was due to the way I was piecing
the date together. Much easier to just pass it the millisecs - works
like a charm now.

Thanks!

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Brian
S O'Neill
Sent: Saturday, May 31, 2008 7:30 PM
To: Discussion of the Joda project
Subject: Re: [Joda-interest] Error with LocalDate constructor

What is the month? The constructor only allows a day of month of 31 for 
months which have 31 days.

Michael Mehrle wrote:
>
> Value 31 for dayOfMonth must be in the range [1,30]
>
> 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));*
>
> * *
>
> Any input would be helpful.
>
> Michael
>
>   

------------------------------------------------------------------------
-
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/joda-interest

-------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/joda-interest

Reply via email to