Hey guys,
I am currently improving a workflow of a holiday approval tool.
I am stuck at a particular problem. That is, the planner currently includes weekends into the "# of days of paid leave".
The employees enter the start date of their desired vacation and the end date.
What I want to do is with a foreach-Loop to evaluate each day with the "DayOfWeek" function to see whether it's a saturday or sunday and subtract these two days. So let's say an employee wants to have 7 days of vacation, only 5 days should be subtracted from his "yearly paid leave contingent".
Question: How can I "fill in the gaps" between start and end date?
Kind Regards
Sascha