Date and time, and date range options
Date and time lets customers pick a date, a time or both, such as a delivery date. Date range lets customers pick a start date and an end date, such as rental dates. Neither type has an add-on price. This article covers both.
Date and time
Add a date and time option
- Open the option set and click Add option.
- In the Customer input group, choose Date and time.
- Enter a Label and optionally Help text.
- Under Customers choose, select Date, Time or Date and time.
5. Switch on Required if customers must choose before adding to cart.
6. Save the option set.
| Setting | What it does |
|---|---|
| Label | The name above the field. Up to 100 characters. |
| Help text | A line under the label. Up to 300 characters. |
| Customers choose | Date shows a date picker. Time shows a time picker. Date and time shows both in one field. |
| Required | Customers must choose before adding to cart. |
The picker is the one built into the customer's browser, so its look varies between browsers and devices.
Date range
Add a date range option
- Open the option set and click Add option.
- In the Customer input group, choose Date range.
- Enter a Label and optionally Help text.
- Optionally enter Earliest start, in days from today.
- Optionally enter Longest range, in days.
6. Switch on Required if customers must choose before adding to cart.
7. Save the option set.
| Setting | What it does |
|---|---|
| Label | The name above the fields. Up to 100 characters. |
| Help text | A line under the label. Up to 300 characters. |
| Earliest start | How many days from today the start date can be at the soonest. Optional. Whole number from 0 to 3650. |
| Longest range | The most days between start and end. Optional. Whole number from 1 to 3650. |
| Required | Customers must choose both dates before adding to cart. |
Customers see a Start date and an End date field. The storefront shows these messages:
| Situation | Message |
|---|---|
| The option is required and both fields are empty | "This field is required." |
| Only one date is filled in, or the end is before the start | "Choose a start date and an end date on or after it." |
| Start is earlier than Earliest start allows | "Choose a start date on or after" the earliest date |
| The range is longer than Longest range | "Choose a range of" the number of days "days or fewer." |
Related articles
- Settings shared by all option types
- Text, text area, number, email and phone options
- How to show or hide options with conditions
- How to show options in emails and packing slips
← Text, text area, number, email and phone options Color picker option →