Estimated reading time : 4 min · Published
Separate date, slot and booking
A calendar date does not identify an instant in a time zone. An appointment also has time, duration and a time context. Selecting a date does not guarantee availability. Name the stages separately: requested date, offered slot and confirmed booking.
For a stay, explain arrival and departure meaning and applicable conditions. For an old date, suitable entry may avoid dozens of month changes. Frequency and whether someone already knows the date matter more than an aesthetic preference for a calendar.
Choose native input or a custom calendar
The HTML date input uses browser and platform-dependent presentation with a normalised year-month-day value. It contains no time. Displayed format can vary; labels and instructions should remain understandable.
The W3C date-picker example combines entry and a calendar. A custom version adds keyboard, focus and announcement work. Check target devices and keep a clear way to enter or correct the date.
Fictional exercise: a date field has min="2026-11-02", max="2026-11-23" and step="7". The step counts days from min: 2, 9, 16 and 23 November satisfy these constraints. November 10 falls within the range but misses the step; November 30 exceeds the upper limit. This regular pattern does not represent public holidays or the service’s actual availability.
Separate three checks: a possible calendar date, the field’s constraints and the real ability to book. A submitted value of 2026-11-09 contains no time. If the browser adjusts input to a permitted value, review the resulting date in the summary. Repeat validation on the server and check capacity before confirming; the displayed calendar is not evidence of a booking.
Scroll the table horizontally to read every column. With a keyboard, focus the table area and use the arrow keys.
| Submitted value | min, max and step constraints | Decision still required |
|---|---|---|
| 2026-11-02 | Minimum boundary allowed | Check actual availability |
| 2026-11-09 | One step after the minimum | Check actual availability |
| 2026-11-10 | Within bounds, off the step | Explain the rule and allow correction |
| 2026-11-30 | Beyond max | Reject this date and offer correction |
Validate meaning and availability
The server needs to validate date, limits and availability on submission. A calendar shown minutes earlier may be out of date. If a slot has gone, preserve other information and offer an explicit alternative rather than restarting the whole journey.
Show the appointment’s time context when participants may be in different countries. Review page, summary and email together. A differently formatted date must not become a different day through unnecessary conversion. Test a month boundary, leap year and withdrawn availability.
Example: request an intervention
Educational example: a form collects a preferred date and says the team will confirm it. The result says “Request received for 12 November” without claiming a slot is reserved. If actual appointment times are offered later, confirmation includes date, time and time context after service acceptance.
Reference documents
- date input · Source consulted
- W3C date-picker example
- W3C WAI : Date picker dialog example · Source consulted
Content updated on
