Options

CalcDateBOC in Codeunit 7600

TiwazTiwaz Member Posts: 98
Can anyone explain to me how to use CalcDateBOC in Codeunit 7600. I'm going crazy over this code.
I need to calculate last working day in a specific month.
For example, if month is '12' then the last working date output will be 30.12.2016.
THANKS!

Best Answer

Answers

  • Options
    vaprogvaprog Member Posts: 1,128
    CalcDateBOC is pretty limited for anything but adding/subtracting a number of days. So I suggest you first calculate the first day of the next month using a normal CALCDATE('<-CM+1M>',..). Then use CalcDateBOC to subtract one day from the former result.
Sign In or Register to comment.