How to calculate the date of the very next friday?


#1

Hi! i’m currently working on a process that checks and invoice and need to input a payment date which should be the friday of the ongoing week (next friday from today). I already read the Date and Time Variables but couldn’t figure it out. Every bit of help is appreciated.
Thanks.


#2

Hi @gustavogomezpwc: Try this:

Assign a date time variable to Today.AddDays((Today.DayOfWeek - DayOfWeek.Friday)*-1)

I found this article useful.


#3

Exactly what I needed Thank you so much!:grinning:


#4

De nada! Happy Automating! :slight_smile: