Date and Time Picker
A date and time picker helps users enter temporal values through text, structured fields, calendar or clock controls, or a combination of these inputs.
Download Markdown (.md)Soroush’s Product Wiki · https://wiki.soroush.uk/topic/date-and-time-picker/
01What it means
A date or time picker is an input pattern for choosing a date, time, range, or recurrence. Its visible calendar or clock is only one entry method; robust designs also handle typing, locale, validation, availability, time zones, and keyboard access.[1][2]
02Why it matters
Temporal data is deceptively complex. A well-chosen input reduces format errors while letting users enter known dates quickly and explore uncertain dates visually, without hiding constraints such as unavailable days or time-zone conversions.
03When to use it
Use simple text or segmented fields when users know the value, such as a birth date. Add a calendar when day-of-week, nearby availability, or ranges matter. Avoid a calendar-only picker for dates far in the past or future, and avoid clock faces when precise typing is faster.
04How it works
- Define the temporal value, valid range, precision, locale, time zone, and availability rules.
- Choose an entry method based on whether users know the value or need to explore options.
- Provide visible format guidance and accept reasonable localized input without changing values unexpectedly.
- Make popup grids and controls operable by keyboard with clear focus, selection, and current-date states.
- Validate impossible or unavailable values inline and repeat the interpreted date or time before consequential submission.
05A practical example
A clinic appointment form lets patients type a date or open a calendar showing available days. Times are displayed in the patient's named time zone, unavailable slots remain understandable, and the confirmation repeats the full localized date and time.
06Where it breaks
Calendars are cumbersome for distant dates, dense availability, high zoom, and screen readers. Locale assumptions can reverse month and day, daylight-saving changes can invalidate times, and native controls vary across browsers and devices.
Common mistakes
- Forcing users to navigate month by month to enter a birth date.
- Using placeholders as the only format instruction or label.
- Showing a time without naming its time zone when ambiguity matters.
- Disabling dates without explaining why or offering a next available option.
07Sources
- Date Picker Dialog ExampleW3C Web Accessibility Initiative · Technical exampleDate Picker Dialog Example
- Date inputGOV.UK Design System · Institutional design systemDate input