Hello everyone,
I use the following formula to calculate the Days between two dates excluding the weekend:
RoundDown(DateDiff(StartDate.SelectedDate, EndDate.SelectedDate, Days) / 7, 0) * 5 +
Mod(5 + Weekday(EndDate.SelectedDate) - Weekday(StartDate.SelectedDate), 5)
But the problem is, that the formula doesnt calculate right. F.e.
StartDate=03.04.2022 and EndDate=09.04.2022
you get the result "2" but the rightone is "5".
Have someone an idea, what can be the problem? It must been use quit a lot as I seen in the forum, so it might be right.
Sincerly Vinc