I need a formula to display a recrruing date, the next one an the previous one from currentdate. The Day is a numeric value in a db field {BillDate}. I have the following formula - so far - which gives me the next {BillDate}:
###############
Local numbervar m:=month(CurrentDate)+1;
Local numbervar y:=year(CurrentDate);
Local numbervar d:=day(CurrentDate);
If m>12 then (m:=m-12; y:=y + 1);
################
In the same data some billdates are quarterly, which will have to deal with "last day of the month" issue.
Date(y,m,{PLANEESTAT.REBDAYNUM})
###############
Local numbervar m:=month(CurrentDate)+1;
Local numbervar y:=year(CurrentDate);
Local numbervar d:=day(CurrentDate);
If m>12 then (m:=m-12; y:=y + 1);
################
In the same data some billdates are quarterly, which will have to deal with "last day of the month" issue.
Date(y,m,{PLANEESTAT.REBDAYNUM})