Date Picker
A form control pairing a calendar popover with direct text entry so users can select a single date or continuous date range accurately
Table of Contents
Interactive Playground
Tap or drag to interact with the demoWhat is Date Picker?
A form control pairing a calendar popover with direct text entry so users can select a single date or continuous date range accurately. It is a core concept in UI Components within UI / UX.
Core Principles
A Date Picker pairs a text input with a calendar popover so users can choose dates with full weekday and monthly context. It comes in two primary modes: Single Date for deadlines or appointments, and Date Range for continuous start-to-end spans.
Visual calendars excel for near-term dates where days of the week matter (like "next Friday"), whereas distant known dates such as a date of birth are often faster to type directly than to navigate across decades.
Practical Takeaways
- Support both calendar picking and keyboard entry: Allow formatted typing (e.g.,
YYYY-MM-DD) alongside the popover, and prefer text inputs or year/month dropdowns for birthdates. - Disable unavailable dates clearly: Visually mute past dates, sold-out days, or out-of-range dates and mark them with
aria-disabled="true"rather than failing only on form submission. - Add quick presets to range pickers: Shortcuts like
Today,Last 7 days, andLast 30 dayscut analytics filtering down to a single click.
Notable Examples
- Travel booking (Airbnb, Skyscanner): Dual-month range pickers that preview the highlighted stay span as you hover toward a checkout date.
- Analytics dashboards (Stripe, GA4): Presets sidebar paired with a two-month calendar and period-comparison toggle.
- Task managers: Due-date popovers offering
Today,Tomorrow, andNext weekshortcuts above the calendar grid.