Date Picker & Range

Use to allow a user to choose a date or range of dates.

Content

Date format

Always display the date in the approved format: Jun 15, 2023.

For date range, Learn more about our dates, time and duration formats. NEVER use numeric dates.

DPR-Copy-Example-Format-DatePicker
DPR-Copy-Example-Format-DateRange

 

Copy Guidelines

Placeholders

Date range pickers don’t have placeholder copy, as the range field is never empty and so placeholder copy is not necessary.

Date pickers have “Choose a date” as placeholder, and there’s no need for format guidelines since the picker emerges preventing formatting errors.

 

Hints

Use the hint to give additional information or context to enter information.

Note: aim to have a clear enough label so that no helper text is needed.

  • 2 sentences max length
  • 2 lines of wrapping max
  • Keep it short and concise
  • Use contractions where it applies to make it sound closer and more conversational
  • If 1 sentence, don’t end in period. If 2 sentences, end in period.
DPR-Copy-Example-Hint

 

Errors

  • 2 sentences max length
  • 2 lines of wrapping max
  • Keep it short, concise, and empathetic. Give users a way to fix this.
  • If 1 sentence, don’t end in period. If 2 sentences, end in period.

Date range length & end date

DPR-Copy-Example-Errors-Eng1
DPR-Copy-Example-Errors-Eng2
DPR-Copy-Example-Errors-Eng3
DPR-Copy-Example-Errors-Spa1
DPR-Copy-Example-Errors-Spa2
DPR-Copy-Example-Errors-Spa3

 

Types

Date Picker

Web

  • Typically does not have a default selection
  • Text field CAN be typed into
  • Can be used with or without the calendar
DPR-Web-Example-DatePicker

 

Native app

  • Typically does not have a default selection
DPR-Copy-Example-Format-DatePicker

 

Date Range

Web

  • Will always have a default selection, which means the text input can not be “cleared”
  • Text field CAN NOT be typed into
  • Presets: maximum of 5 + custom options
DPR-Web-Example-DateRange

 

Native app

  • Will always have a default selection, which means the text input can not be “cleared”
DPR-Copy-Example-Format-DateRange

 

Best Practices

Disabled dates

Use disabled dates to communicate report limitations. In the example below, the experience of the user in the Basic plan is limited. Express those limitation via disabled dates and by adding a description to “custom.”

Do
DPR-Web-DoDont-DisabledState-Do

 

Don’t
DPR-Web-DoDont-DisabledState-Dont

 

Start of the week

The first day of a week in the calendar should reflect the user’s “start of the week” settings. This is commonly Sunday or Monday.

DPR-Web-Example-StartofWeek

 

Keyboard navigation

When a user tabs to a date picker, the following behavior is expected. Date range is similar, except the text input is not interactive.

1. Activate the focus state by clicking, tapping or tabbing to the interactive control.

1. Activate the focus state by clicking, tapping or tabbing to the interactive control.

2. Press “return” to activate the text input and open the calendar.

2. Press “return” to activate the text input and open the calendar.

- Cursor becomes active in the text input
- User can tab into the calendar

3. Use the arrow keys to move around the calendar dates and month left/right navigation.

3. Use the arrow keys to move around the calendar dates and month left/right navigation.

Focus state highlights arrows and dates.

4. Press “return” to select and / or de-select a date.

4. Press “return” to select and / or de-select a date.

5. Press “tab” to close the calendar and move on to the next interactive control

5. Press “tab” to close the calendar and move on to the next interactive control

 

Native app - mobile

iOS

Use the following native components:

DPR-NA-Example-iOS-Wheel
DPR-NA-Example-iOS-DatePicker
DPR-NA-Example-iOS-List

 

Android

Use the following native components:

DPR-NA-Example-Android-List
DPR-NA-Example-Android-DatePicker

 

Resources

(internal only)

Figma

Storybook

Enhancements