(this page was created automatically. In case of formatting issues, please visit the official Wiki Page)

Date Picker

Overview

Date Picker Overview

Specs

Tokens

Token Description
labelTranslations Label text displayed above the date picker with localization support
timeLabelTranslations Label text displayed for the time portion with localization support
format Defines how the date (and time) is displayed and parsed
showTime Controls whether time selection is displayed
showNowButton Adds a button to quickly select the current date and time
initializeWithCurrentDate Prefills the picker with today’s date on initialization
type Sets the visual appearance: NORMAL or INLINE
validation Configures validation rules
required Ensures a date is selected before submission
compareFields Validates against other date fields (e.g., end date after start date)
dataField Defines the field name used in submitted data
saveInLocalStorage Persists selected date between sessions
controlsRequestType Specifies how data is sent in HTTP requests (BODY, HEADER, PATH)
readonly Displays value but prevents modification
hidden Keeps the component in form structure but hides it
events Configures events for the component
ON_INIT (Events) Event triggered when component is initialized
ON_DESTROY (Events) Event triggered when component is removed
dataTestId Testing hook ID for automated testing

Structure

Labeled structure of the Date Picker

(Configured in Non-Visual Properties)

Styling

(Configured in Visual Properties)

Visual Properties Tab

Actions & Variants

(Configured in Non-Visual Properties)

(Configured in Events)

Validation

(Configured in Validation)

Tests

(Configured in Testing Hooks)

Links

Guidelines

Usage

Sizing & Layout

States & Feedback

Visibility & Authorization

Content & Localization

Dos & Don’ts

Do Don’t Article setting(s)
Enable showTime and provide timeLabelTranslations with a time-inclusive format when a time is required. Ask for a time in instructions while leaving the time selector off. showTime, timeLabelTranslations, format
Prefill today when it’s the common case with initializeWithCurrentDate; add showNowButton for quick “current” input. Force users to navigate the calendar for “today” repeatedly. initializeWithCurrentDate, showNowButton
Choose a single, unambiguous format and keep it consistent between parsing and display. Mix display and parsing formats or use locale-ambiguous patterns. format
Enforce relationships like end ≥ start using compareFields. Rely on manual checking or external validation only. validation.compareFields
Mark mandatory fields with required inside the component’s validation. Depend solely on page-level validation to catch empty dates. validation.required
Persist selections for long forms with saveInLocalStorage. Make users re-enter dates after a reload. saveInLocalStorage
Show non-editable, system-generated dates with readonly. Hide the value entirely when users need to see it. readonly
Hide the control from the UI with hidden when it shouldn’t be visible. Leave an irrelevant picker visible and hope users ignore it. hidden

Accessibility