Hi Community,
I am currently in the middle of creating the workflow and it is working as expected.
However, I now have an additional requirement to include the Number of Days between two dates.
The user identities has an attribute “End Date” and 10 days before the End Date, the workflow is run based on change in lifecycle state which sends out an email to management.
As per the new requirement, I need to include the number of days, calculated as the differentce between “End Date” and today’s date. so let’s say of the End Date is 2024-02-10 and today’s date is 2024-01-31, the workflow calculates the difference as 10 days and gives me a variable with the value 10.
I tried using Define Variable with Variable A as End Date and subtracting todays date using $.now() but I think this is not correct way to do it since it is erroring out.
Does anyone have any suggestions or a way to extract the number of days between 2 dates?
Thanks