I have first day of the month saved in a datetime variable. Next i should check if it’s monday = all good. If not it should search next monday and return its date.
Found php solutions from google and got kind of close. This for example echo date(“j, d-M-Y”, strtotime(“next monday”)); Does not work in Uipath though so decided to ask some help.
This is my solution: Today.AddDays((DayOfWeek.Saturday-Today.DayOfWeek)+2).DayOfWeek.ToString
DayOfWeek.Saturday=7
Today.DayOfWeek (ex: Friday) =6
.DayOfWeek = Monday (you can use other function to display the final result)