Automate date inputs with the Date and time step


How to automate date inputs with the Date and time step: install the Chrome extension, click Build with Browser agent, tell the agent what you want, and follow its prompts. A working bot is built and tested in minutes.

Here is how the automation works. To automate a date input, add a Date and time step to get the date, then insert its [date-and-time] token into the step that needs it, such as Enter text for a form field. The step gives the current date, a date relative to today, or an existing date in a new format. A date helps when filling forms, and when keeping track of when your automation ran.

Author
Alex Barlow
Published

Build the date input from a description


Describe it and click the button: the agent builds and tests the date input in your Chrome extension, typing today's date into a form.

  1. Go to the form page I give you
  2. Get today's date in the format the form uses
  3. Type it into the date field
  4. Submit the form
Click to launch the Chrome extension. Not installed? You can create an account and try it free.Opens the Chrome extension. Free account to try.

You need the URL of the form with the date field. The agent asks you which format the form expects if it cannot tell.

Build the date input step by step


The steps the agent builds, as the Builder shows them: each step by its name, with the fields to set under it. Add them yourself in this order in the step-by-step builder, or open the agent's result there to adjust it.

  • 1.0 Go to page
    • URL: the form's page
  • 2.0 Date and time
    • Current is chosen
    • Select format: the date, the time or both, in the format the form expects
  • 3.0 Enter text
    • Select text field: the date field
    • Text: [date-and-time]
  • 4.0 Click element
    • Select: the form's submit button

Common questions about the date input


What dates can the Date and time step give?

Three kinds: Current, the current date and time; Custom, a date relative to the current date, in the past or future; and Reformat existing, a date passed into the step in a new format, useful for a date from a Google Sheet. The timestamp is taken at the moment the Date and time step runs, not when its token is used later. The difference is usually a few milliseconds, but it grows in larger automations, so when the same moment matters across steps, run the Date and time step just before the step that uses it.

What other steps can use the date from the Date and time step?

Any step with an Insert Data option can use it. Common ones:

See passing data between steps for how tokens move between steps.

How do I get a date in the past or future?

Choose Custom in the Date and time step and pick a preset, such as a number of days in the past or in the future, or the first day of this month.

How do I change the format of a date from a Google Sheet?

Choose Reformat existing in the Date and time step, pass in the date from the sheet, and pick the new format in Select format.

How do I fill a calendar date picker instead of a text field?

Use the Date picker step, which changes the month and clicks the day. For a Google Forms date field, see fill a date picker in a Google Form.

Can I automate a date input without code?

Yes. The Date and time step gives the date with no script, and Enter text types it. The JavaScript route below is there for a format the step does not offer.

Can I get the date with JavaScript instead?

Yes. See getting the date and time with JavaScript.

Can I run the date input on a schedule?

Yes. Save the automation and set a schedule. Current is taken each time the step runs, so a scheduled run types that day's date.

Where do I get help?

Get in touch with support, or ask in the axiom.ai community.

Related guides