You need the last day of a month based on a certain day.
//120708D can also be a datevariable
EndDateofMonth := calcdate('<CM>',120708D);
BeginDateofMonth := calcdate('<-CM>',120708D);
EndDateofNextMonth := calcdate('<CM+1M>',120708D);
BeginDateofNextMonth := calcdate('<-CM+1M>',120708D);
Are you sure? End day of next month is +1M+CM. Do CM in February, you get Feb 28, you add 1M, you get March 28, which is not the last day of march. I didn't try it though, so it might work.
Answers
You need the last day of a month based on a certain day.
Regards
RIS Plus, LLC
The correct syntax for EndDateofNextMonth is
So with this, the End date of next month will be correct calculated