It looks like you're new here. Sign in or register to get started.
datFirstDayOfMonth := DMY2DATE(1,DATE2DMY(datSomeDate,2),DATE2DMY(datSomeDate,3)));
FirstDayDate := CALCDATE('<-CM>',MyDate)l
kriki wrote: datFirstDayOfMonth := DMY2DATE(1,DATE2DMY(datSomeDate,2),DATE2DMY(datSomeDate,3)));
datLastDayOfMonth := CALCDATE('<1M>',datFirstDayOfMonth) - 1;
kriki wrote: kriki wrote: datFirstDayOfMonth := DMY2DATE(1,DATE2DMY(datSomeDate,2),DATE2DMY(datSomeDate,3))); Did see that also the last day of the month was needed: datLastDayOfMonth := CALCDATE('<1M>',datFirstDayOfMonth) - 1;
datLastDayOfMonth := CALCDATE('<CM>',datMyDate);
kine wrote: kriki wrote: kriki wrote: datFirstDayOfMonth := DMY2DATE(1,DATE2DMY(datSomeDate,2),DATE2DMY(datSomeDate,3))); Did see that also the last day of the month was needed: datLastDayOfMonth := CALCDATE('<1M>',datFirstDayOfMonth) - 1; Or in generaly:datLastDayOfMonth := CALCDATE('<CM>',datMyDate); 8)
Answers
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!
RIS Plus, LLC
And that's all..
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
Did see that also the last day of the month was needed:
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!
Or in generaly:
8)
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!