Date and time step

This step outputs a date and time as the [date-and-time] token, in a format you choose to suit your region. It gives today's date, a date relative to today, or a date from your data converted to another format. Pass the token into an Enter text step to type a date into a form.

You can use this step to:

  • Pass dates into file names
  • Populate From and To dates in web forms
  • Automate report downloads when a date range is needed
  • Filter dates on listing pages
  • Tag scraped content with the date, with the Append or merge data step

If a value or format you need is missing, let us know and we can add it.

The Date and time step with its Data options Current, Custom and Reformat existing, the Date and Time checkboxes and the format dropdown, outputting the date-and-time token

How to configure the Date and time step


Data

Choose where the date comes from:

  • Current: the date and time now, in your location.
  • Custom: a date relative to today. Pick Last day of previous month, First day of this month, n days ago or n days in the future, and enter the number of days for the last two.
  • Reformat existing: a date from an earlier step. Click Select data to format, choose the data, then set Data date format to the format the data is in so the step can read it. The option appears once an earlier step outputs data.

Select format

Tick Date, Time or both, then choose the output format from the dropdown. For a date that goes into a file name, choose a format with hyphens.

Guides that use this step