Notifications
Announcements
Hello, I'm looking for help regarding calculating dates and skipping weekends from the result.The Scenario is the following:Calendar for the start date, a numeric input for the days to add to the selected date in the start calendar and then the result to be shown in another calendar.Thank you
Nice Challenge! To create a little mockup for your App, I created an App with two date-pickers and a slider to choose the number of workdays to advance.
In the OnChange of the slider I added this calculation for translating workdays to full week calculations:
With({_WeekDayStart:Weekday(DatePicker1.SelectedDate), _AddWeekDays:Slider1.Value}, Set(varAddDays,_AddWeekDays+2*RoundDown((_AddWeekDays+_WeekDayStart-2)/5,0)))
DateAdd(DatePicker1.SelectedDate,Value(varAddDays),TimeUnit.Days)
Thank you @RogierE for your help, I appreciate it.I will try this solution and let you now, I tried many other ways, seems working but sometime the results are not accurate. So I need to keep searching for alternative solutions.Thanks
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
In our never-ending quest to improve we are simplifying the forum hierarchy…
We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
WarrenBelz 765 Most Valuable Professional
Michael E. Gernaey 343 Super User 2025 Season 2
Power Platform 1919 272