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.
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.
- Go to the form page I give you
- Get today's date in the format the form uses
- Type it into the date field
- Submit the form
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 pageURL: 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 textSelect text field: the date fieldText:[date-and-time]
- 4.0
Click elementSelect: 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:
- Write data to a Google Sheet, to record when the data was created.
- Download file, to put the date in a file or folder name.
- Send an email, to put the date in the email body.
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
Copy data from a Google Sheet into a web form
- Read the rows from my Google Sheet
- Open my web form
- Match each column to a field on the form
- Click the submit button
- Loop through every row of the sheet
- Date each row in the sheet once submitted
Fill a date picker in a Google Form from a Google Sheet
- Read the names and dates from my Google Sheet
- Open my Google Form for each row
- Fill in the name and the date
- Submit the form
Export Helium 10 Cerebro keywords for a list of ASINs to a Google Sheet
- Read 10 ASINs from my Google Sheet
- Enter them in Cerebro and get keywords
- Export the keyword data as a CSV
- Add the CSV rows to my ASIN data tab
- Delete those ASINs and repeat