Dynamics Ax workdays to days

Ever had to calculate the number of days starting from a number of workdays and even deal with holidays. A pretty straightforward example using the DateTimeUtil class and DayOfWk method. static void WorkDaysToDays(Args _args) { int workDays = 10; int days = 0; date startDate = systemDateGet(); CalendarId calendarId = CompanyInfo::find().ShippingCalendarId; ;   if(calendarId) {… Continue reading Dynamics Ax workdays to days