I have six dates. I need to build condition for that date so that when today is x date (also check days), I need to select date -3 or -4 or -2. The date with conditions are in figure below
What I want is:
In a year whenever the date mentioned above comes up… I need to run a condition so that it clicks the date in calendar I want it to click>
For eg: If todays date matches the date in condition it should click -4 (could be -3 or -2) and choose that date otherwise if it doesnot match it should click -1 or -2 ( given i have condition to check if its monday select -2 and other days select -1)
For the rest of the date in a year… I have developed a condition if todays date is x and is monday select -2 to choose friday date… and for the rest of the day just choose yesterdays date.
I don’t know if I am clear enough but I would appreciate any help. Thank you
Where DateTime.Now.AddDays(-1) is the default date for other dates. You can change as needed it.
Using auxiliary file make easy to add, remove or change the dates without need to change your code in the future. You just add into file, set which is the rule and done. It reflect in your code
Now you already have the date, just change your flow to use it when need to select the date.
Hi, So doing these does it matches todays date with the date in excel and then setup the rule accordingly? Can you elaborate what the code is doing please?