On 11/03/2011 07:40 AM, Ludwig Magnusson wrote:
> It doesn't really cover all the cases I mentioned, but it seems to work for
> in the situation I'm in.

For how many months were "touched", you can set the start date to the 
first day of the month and the end date to the last day of the month 
before adding the extra day to the end date and finding the months in 
between. The field methods like withMaxFieldValue or whatever it's 
called are useful for things like "last day of the month". I hope that 
helps.

Or maybe it works to set both the start and end date to the first of the 
month, check how many months are between them, and add 1 to the answer; 
I'd have to think about it more than I have time for right now. (-:

Mark

-- 
Mark Carroll
Software Engineer
mark.carr...@vecna.com
http://www.vecna.com/

Cambridge Research Laboratory
Vecna Technologies, Inc.
36 Cambridge Park Drive
Cambridge, MA 02140
Phone: (617) 864-0636
Fax: (617) 864-0638

Better Technology, Better World (TM)

The contents of this message may be privileged and confidential. 
Therefore, if this message has been received in error, please delete it 
without reading it. Your receipt of this message is not intended to 
waive any applicable privilege. Please do not disseminate this message 
without the permission of the author.

------------------------------------------------------------------------------
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
_______________________________________________
Joda-interest mailing list
Joda-interest@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/joda-interest

Reply via email to