Generate days between two dates on a schedule
Recipe Tools
What it does
When a scheduled time arrives, this automation creates variables for a begin date, end date, and the number of days between them. Someone can then reference those values in other steps or send them to another app.
Who it's for
Operations teams who need to track time intervals or measure project duration automatically.
How teams use this
Track project timeline automatically
Calculate the days from project start to today on a daily schedule so the team always knows how long the project has been running. The interval stays the same and only the dates change each day.
Send duration to a reporting app
After calculating the days between dates, add a step to send that number to a spreadsheet or dashboard so someone can see project progress without manual updates.
Alert when a deadline approaches
Calculate days remaining until a deadline and add a condition to check if the number is below a threshold, then notify the team when time is running short.
How it works
- Start at the scheduled time. At the scheduled interval you set, this automation starts and begins calculating the date difference.
- Create variable Begin date. Set the start date as a variable in this automation so it can be used in the calculation and referenced later.
- Create variable End date. Set the end date as a variable in this automation so it can be used in the calculation and referenced later.
- Calculate days between dates. Subtract the begin date from the end date to get the number of days, stored as a variable for use in downstream steps.