I would like to run a report every month on the 5th workday. What is a line of code or expression I can use in an If activity to get the robot to determine if it is the 5th business day of the month?
This should work in single assign activity, pretty long though. Give a try until someone provides a better solution.
variables in bold (2017, 10)
if (now.ToShortDateString = Enumerable.Range(1, 7).[Select](Function(day) New DateTime(year,month,day)).Where(Function(dateTime) (dateTime.DayOfWeek <> 0 And dateTime.DayOfWeek <> 6)).Skip(4).FirstOrDefault().ToString(“MM/dd/yyyy”))