Skip to main content

Date with time zone

note

This component is being reworked. There will be a new version aligned with the latest guidelines in upcoming releases.

Usage

Overview

The date with time zone component enables users to input a date, time, and time zone when completing a form.

Anatomy

Date, Time, and Time zone picker UI

The date with time zone component consists of the following elements:

  1. Date picker: enables the user to input a particular date into a form.

  2. Time picker: enables the user to input a particular time into a form.

  3. Time zone picker: enables the user to input a particular time zone into a form.

Best practices

  • The date with time zone component should only be used when the use case warrants it.

  • Do not leave the time or the time zone fields empty. If the user only needs to specify a date, see the date picker component.

  • Set defaults wherever possible to prevent errors.

  • Set formatting help, wherever possible, to prevent errors and enable faster data entry.

Interactions

Each of the elements that make up this component have their own interaction patterns and associated behaviors.

For date picker interactions, refer to the date picker component.

  1. Time picker User selects time from the Time dropdown

    a. When the user selects the time control, text entry is enabled. Alpha-numeric text is accepted in the field. Users may enter numeric time values and the alphabetic abbreviations AM/PM.

    b. The separators, as dictated by the required time format, will be added automatically.

    c. A dropdown with preformatted time intervals will be enabled, from which users may also choose a specific time.

    d. All standard interaction patterns for the dropdown component will apply here.

  2. Time zone picker User selects the time zone from the Time zone picker

    a. When the user selects the time zone control, text entry is enabled. Only alphabetic text is accepted in the field to enable entry of time zones.

    b. A dropdown with preformatted time zones will be enabled, from which users may choose a specific time zone.

    c. All standard interaction patterns for the dropdown component will apply here.

UX writing considerations

  • Field labels should be clear, concise, and specify the use case.

    • Labels appear above the input fields and are left-aligned.

    • Use sentence case for field labels.

  • When representing the date as a numeric value or label, best practice is to use ISO Standard 8601: YYYY-MM-DD.