Date Picker
UI DesignWhat is a Date Picker
A date picker is a UI control that helps users enter a date, usually by choosing it from a calendar. Many date pickers also let users type the date directly. Some let users select a date range, such as check-in and check-out.
Types of Date Pickers
- Calendar picker: A month grid users click to pick a day
- Range picker: Often two months side by side
- Typed input: A text field with a clear format
- Scrolling picker: Wheels for day, month and year on mobile
When to use a Date Picker
Use a calendar for dates close to today, such as bookings and deadlines, and for ranges. For dates far away, such as a birthdate, let users type instead, because scrolling back decades in a calendar is slow.
Date Picker best practices
Always allow typing as an option. Make the format unambiguous, for example by showing the month as a word, and do not force users to type slashes or dashes. Make sure the calendar works with a keyboard and a screen reader.
Frequently asked questions
Should a birthdate field use a calendar picker?
Usually not. NN/g recommends letting users type dates that are far in the past or future, such as a birthdate, because navigating a calendar back decades takes many clicks.
When is a calendar date picker the best choice?
For dates within the next year or so, and especially for date ranges such as hotel stays, where seeing two months side by side helps users pick check-in and check-out dates.
How do you avoid date format errors?
Show the expected format clearly, accept dates without requiring special characters, and avoid ambiguous orders, for example by spelling out the month or using separate fields for day, month and year.
Related terms
View all UI Design terms →Input Field
An input field, or text field, is a box where users type information , such as a name, email address or password. It is the most common…
Combobox
A combobox is an input field combined with a popup list of options . Users can type to filter or enter a value, then pick from the …
Error Prevention
Error prevention is the practice of designing an interface so users are less likely to make errors in the first place. It is the fifth of…
Keyboard Navigation
Keyboard navigation is using a website or app with the keyboard instead of a mouse . Users move between links, buttons and fields with the…
Accessibility
Accessibility in UX design refers to creating digital products that can be used by everyone , including people with visual, motor…
