I want to calculate a date but disregarding saturday and sunday

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

Hi

 Find First Day of the Week

FirstDayofWeek Datetime Variable = DateTime.Today.AddDays(-Weekday(DateTime.Today, FirstDayOfWeek.System) + 1)

LastDayof Week

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

@rildo13

Welcome to our uipath community.

Do you want to calculate working days between two dates. If yes then please check below thread.

https://go.uipath.com/component/calculate-business-working-days-2e41c4

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.