I want to calculate a date but disregarding saturday and sunday, which function could i use?
Can you explain what you mean by calculating a date?
I want to add 5 days, but I don’t want to count on saturday and sunday
Find First Day of the Week
FirstDayofWeek Datetime Variable = DateTime.Today.AddDays(-Weekday(DateTime.Today, FirstDayOfWeek.System) + 1)
Datetime Variable = FIrstDayofweek.Adddays(6)
Lets assume your Date is already a Datetime Datatype.
Datetime. DayOfWeek property allows you to detect If its sunday or saturday.
This Info es.g can be used in a condition of an If else activity forevaluation If days are to add or not
Welcome to our uipath community.
Do you want to calculate working days between two dates. If yes then please check below thread.
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.