Re: EntityConditions to lookup records between 2 dates

2011-07-21 Thread Adrian Crum
I don't know why the EntityCondition isn't working, but I see something wrong in your calendar logic. Instead of subtracting one from the int constant, you should use the Calendar object's add method to subtract one month. -Adrian On 7/21/2011 2:23 PM, Justin Robinson wrote: The following do

EntityConditions to lookup records between 2 dates

2011-07-21 Thread Justin Robinson
The following doesn't seem to work. Calendar calS = Calendar.getInstance(); calS.set(Calendar.DAY_OF_MONTH, 25); calS.set(Calendar.MONTH, (calS.get(Calendar.MONTH)-1)); Calendar calE = Calendar.getInstance(); calE