How do I write a condition that states “if today’s date is the last day of the month, then send the email” (i know you can do an orchestrator trigger but I cannot use orchestrator right now).
HI @Laura2
Welcome to UiPath community
Check out the expression
(New DateTime(Today.AddMonths(1).Year,Today.AddMonths(1).Month,1)).AddDays(-1).toString("MM/dd/yyyy") = New DateTime(Now.Year,Now.Month,Now.Day).ToString("MM/dd/yyyy")
Regards
Gokul
In Addition we canuse followin strategy / coding
Find End date of of current month, driven by todays date:
When EndDate = Today then we do have the last month day
IF activity - Condition: now.AddDays( - now.Day + 1).AddMonths(1).addDays(-1).Date = Today
thank you. I can actually use both of these since i need another if statement for the second day of the month.
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.