<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-5HGSQD2L" height="0" width="0" style="display:none;visibility:hidden" title="GTM"></iframe>

Date & Time

Users can select dates and times in different contexts across Vista. The Date & Time pattern ensures users are presented with a consistent UI regardless of the type of date they select or the specific page navigated to. This pattern covers the most common scenarios but is not intended to be comprehensive. If you have a unique use case, reach out to us so we can track its usage for future iterations of this pattern.

Need help with copy? Check out the Date and Time Content Guidelines.

Use the Date & Time pattern...

  • For specific timestamping: when users need to select a specific calendar date or timestamp to complete an action.
  • For scheduling and availability: when the selection depends on external factors like business hours, shipping windows, or appointment slots.

Don't use the Date & Time pattern...

Overview

The Date & Time pattern is a modular framework utilizing SWAN components. You should compose the pieces based on your specific user flow.


1. Heading and description (option)

For the heading, use a font skin that corresponds with the visual hierarchy of the page. The description provides additional context for the task that needs to be completed. Both are optional depending on the scenario.

2. Selection Component(s)

This element or elements initiate the date and/or time selection. It can be a single component, like a DateCalendar, or a combination of them, such as a DatePicker and a TimePicker used together.

Date and Time Pattern Overview

Layout

Sequencing

Structure the layout so the date component is primary to the time component in the reading order. This ensures that the time component remains logically and functionally dependent on the date selected.

Spacing

If used outside of a Form (where spacing is already applied), use semantic space between-subsections to put space between the components.

Selection components

Choose between a DatePicker and a DateCalendar based on your page layout. In scenarios where both are feasible, prioritize the DatePicker. It is more versatile, as it supports both manual text entry and calendar selection within a more compact vertical space .

Date Picker & Time Picker

The preview has been updated.

Date Calendar & Time Picker

The preview has been updated.