Skip to content

Date & Time

Date pickers and Time pickers allow users to select and navigate through past, present, and future dates and times.

Usage

These components are used in scenarios where users need to input specific dates, times, or date ranges.

Date pickers typically include an expandable calendar menu and a text input field, while Time pickers focus solely on time selection, usually a text input field or dropdown menu for selecting specific times.

Date time

When to use

  • To collect absolute date and time inputs.
  • For scheduling tasks.
  • In Forms.
  • To select date ranges for generating reports or viewing historical data.
  • For relative date selection, use Date Range Filter.

Best practices

  • Ensure the format of dates and times adheres to the user's locale settings. See Localization for more details.
  • Ensure placeholders are also localized to match the user's regional settings (e.g., "MM/DD/YYYY").
  • When required, validation can be set for all time inputs.
  • Provide clear and concise labels for input fields.

Except where otherwise noted, content on this site is licensed under MIT License.