i am looking to have the bot pick up the next working day date, i have used this code below
DateTime.Now.AddDays(+1).ToString(“MM/dd/yyyy”) to insert the next working day date and the formula works fine, however if the bot is to run on friday it shoud then pick up mondays date and not saturdays date.
I would greatly appreciated any ones help regarding this.
that wouldnt work as i am not using that individuals method, i have used a formula into a type into activity where as that user was telling me to use 2 assign activities then a type into.
I used my formula as it was easier is there adaptations to it that can be used? @Nandhuba
And use type into activity for each field and mention the input string like this str_fromdate.ToString+”[k(enter)]” str_todate.ToString+”[k(enter)]”
U can do this enable SNED WINDOW MESSAGE property and disable Simulate type property
For start date first u check last date is sunday or not
So use if condition to check Date.now.Adddays(-1).dateofweek=“Sunday”
in Then : Enddate= Date.now.Adddays(-2).tostring(“dd”)
else : Enddate= Date.now.Adddays(-1).tostring(“dd”)
Let’s try this… Let me know if it helps…