If I have an order for 31st of every month.
and for the months I do not have 31st, I need to deliver the orders on the 30th,
so I wrote the following for it, but, the problem is,
I look at the tasks in a weekly fashion.
So for ex. If I have created something on May 31st,
then obviously this task should come up on June 30th.
However, the 30th of June would fall between weeks 29th June to 6th July.
and.. I wrote the following and have tried a lot permutations, but am not able to reach to a solution,
I would appreciate any help
if(((Integer.valueOf(fromDateWeek) <= (Integer.valueOf(orderDate))
&& ((Integer.valueOf(orderDate)))<= Integer.valueOf(toDateWeek)))){
//sysout("show me the order");
}else if(((Integer.valueOf(fromDateWeek) <= (Integer.valueOf(orderDate))
&& ((Integer.valueOf(orderDate))) >= Integer.valueOf(toDateWeek)))
&& (Integer.valueOf(todate)> Integer.valueOf(lastDayinMonth))){
//sysout("show me the order");
}
}