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.

Ref to 1:103298
Ref to 1:103301

 

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.
Ref to 194:18455

 

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

Ref to 197:18456
Ref to 197:18458
Ref to 197:18460
Ref to 197:18457
Ref to 197:18459
Ref to 197:18461

 

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
Ref to 191:18452

 

Native app

  • Typically does not have a default selection
Ref to 1:103298

 

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
Ref to 192:18453

 

Native app

  • Will always have a default selection, which means the text input can not be “cleared”
Ref to 1:103301

 

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
Ref to 184:8754

 

Don’t
Ref to 184:8757

 

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.

Ref to 194:18454

 

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:

Ref to 1:117046
Ref to 1:117070
Ref to 1:117123

 

Android

Use the following native components:

Ref to 1:117491
Ref to 1:117437

 

Resources

(internal only)

Figma

Storybook

Enhancements