Stores DateTime for the current date value.

We need to get the day of the week for this date, and then select the closest day of the week (Tuesday, Thursday, or Friday) to get the date.

Example.)

If today is Sunday, then Tuesday (December 7 if today is December 5)

if today is Monday, then Tuesday (December 7 if today is December 6)

If today is Tuesday, then Thursday (December 7, then December 9)

If today is Wednesday, then Thursday (December 8, then December 9)

If today is Thursday, then Friday (December 9, then December 10)

If today is Friday, it will be Tuesday (if today is December 10, it will be December 14)

If today is Saturday, it will be Tuesday (if today is December 11, it will be December 14)

So, what is the best way in Uipath to get the nearest day of the week to today’s date?

Thank you in advance.