WorkCalendarSched workCalendarSched;
date dateOnlyWorking, dateAll;
workCalendarSched = new workCalendarSched();
dateOnlyWorking =
workCalendarSched.schedDate( SchedDirection::Backward, today(), 6, NoYes::Yes, "5x24" );
dateAll =
workCalendarSched.schedDate( SchedDirection::Backward, today(), 6, NoYes::No, "5x24" );
info( date2str( dateOnlyWorking, 321, DateDay::Digits2, DateSeparator::Hyphen,
DateMonth::Digits2, DateSeparator::Hyphen, DateYear::Digits4 ) );
info( date2str( dateAll, 321, DateDay::Digits2, DateSeparator::Hyphen,
DateMonth::Digits2, DateSeparator::Hyphen, DateYear::Digits4 ) );
Output: Microsoft AX 2012, X++, C#, SQL server, SSRS, Java, JavaFX, Oracle, PL/SQL, Delphi - codes examples, step-by-step tutorials, experiences.
Thursday, July 26, 2018
AX - How calculate only with opened days in calendar
Use WorkCalendarSched class:
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment