Skip to main content

Date Picker

UI Design

What 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.