Generate a list of dates between Start date and End date

Recipe Tools

What it does

When a scheduled interval triggers, this automation creates variables for a start date and end date. It then generates an array of all dates between them, ready for use in downstream steps.

Who it's for

Operations teams who need to generate date ranges for reporting, scheduling, or batch processing without manual calculation.

How teams use this

Generate dates for daily reporting

Create a date array for a reporting period so a report can loop through each date and pull data. The automation runs once and feeds the dates to the next step.

Build a schedule for batch jobs

Generate all weekdays in the current month so batch processes can run on each date without manual scheduling. Only business days are included in the array by filtering weekends.

Populate a calendar for events

Create a date list for a quarter so event invitations can be sent for each date in the range. The array feeds directly into a loop that creates calendar entries.

How it works

  1. Trigger on a specified interval. Clock triggers this automation on your chosen schedule, such as daily, weekly, or monthly, so the date generation runs when needed.
  2. Set the start date variable. Clock creates a variable that holds the start date for the range you want to generate, storing it for the next steps.
  3. Set the end date variable. Clock creates a variable that holds the end date for the range you want to generate, storing it alongside the start date.
  4. Generate the date array. Clock creates a variable with an array of all dates between the start and end dates, formatted and ready for use in downstream steps or other automations.