Date Picker

Date pickers enable a customer to select a single date or a date range, such as a payment date or a statement period requiring start and end dates. Date pickers are used to display past, present, or future dates. Use date pickers when you are asking the user for a date, a date range, or for scheduling tasks.

Date Picker

Anatomy

Date Picker Anatomy
NameDescriptionRequired
Input LabelA concise descriptive text that informs the users of the text fields intent.Yes
Hint TextIt helps the user understand additional details about the text input requirements.Optional
BorderAdds sufficient contrast to pass accessibility in pressed, success and error states.Yes
BackgroundBackground color can convey active or disabled.Yes
Input TextAllows users to view, enter, or edit a date manually in addition to selecting it from a calendar popover. It supports both typed input and visual confirmation of the selected date format, adapting to local and validation rules. Placeholder text provides lightweight guidance about expected date format before a user enters or selects a date. It disappears once a user begins typing or a date is selected from the calendar. Displays a formatted date based on locale, while allowing the user to type a date in manually. In code, the displayed date format will differ from the actual value — the displayed date is formatted based on the locale of the user’s browser, but the parsed value is always formatted yyyy-mm-dd.Yes
Input ButtonCalendar button icon opens the calendar popover for date selectionYes

States

States of Date Picker
StateDescription
DefaultRepresents the initial, inactive state before a user taps or clicks the input
HoverIt helps the user understand additional details about the text input requirements.
ErrorHelp users understand that there is an error if a field is not validated in a particular format or left blank. Providing a clear message to the user is important for them to know how to correct the error. 
ActiveIndicates represents the moment when a user is currently interacting with the field, sometimes referred as the focused field
DisabledLimit the use of disabled elements as they are not interactive and cannot be focused by keyboard. Disabled elements provide visual indicator, but they don’t need to meet color contrast standards. If an element is disabled, please follow accessibility guidelines to support assistive technology.

Date Range Picker

Anatomy

Date Range Picker Anatomy
NameDescriptionRequired
Input LabelA concise descriptive text that informs the users of the text fields intent.Yes
Hint TextIt helps the user understand additional details about the text input requirements.Optional
BorderAdds sufficient contrast to pass accessibility in pressed, success and error states.Yes
BackgroundBackground color can convey active or disabled.Yes
Input TextAllows users to view, enter, or edit a date manually in addition to selecting it from a calendar popover. It supports both typed input and visual confirmation of the selected date format, adapting to local and validation rules. Placeholder text provides lightweight guidance about expected date format before a user enters or selects a date. It disappears once a user begins typing or a date is selected from the calendar. Displays a formatted date based on locale, while allowing the user to type a date in manually. In code, the displayed date format will differ from the actual value — the displayed date is formatted based on the locale of the user’s browser, but the parsed value is always formatted yyyy-mm-dd.Yes
Input ButtonCalendar button icon opens the calendar popover for date selectionYes

States

States of Date Range Picker
StateDescription
DefaultRepresents the initial, inactive state before a user taps or clicks the input
HoverIt helps the user understand additional details about the text input requirements.
ErrorHelp users understand that there is an error if a field is not validated in a particular format or left blank. Providing a clear message to the user is important for them to know how to correct the error. 
ActiveIndicates represents the moment when a user is currently interacting with the field, sometimes referred as the focused field
DisabledLimit the use of disabled elements as they are not interactive and cannot be focused by keyboard. Disabled elements provide visual indicator, but they don’t need to meet color contrast standards. If an element is disabled, please follow accessibility guidelines to support assistive technology.

Sub-Component States

Input Text

States of Input Text
StateDescription
DefaultThe initial, inactive state of the input field before the user interfaces with it. Displays the placeholder text as guidance.
SelectedIndicates that the input has been clicked or tapped and is ready to receive input. Typically shows with a change in border color or visual emphasis to signal interactivity.
Placeholder (Off)Represents the state where the user has entered a value into the field, replacing the placeholder text. The field may remain focused or unfocused, but the placeholder is not longer visible.

Calendar

The Calendar popover is a shared UI element used in both the Date Picker and Date Range Picker components. This visual interaction creates consistency across components and reduces redundancy.

Anatomy

Calendar Anatomy
NameDescriptionRequired
LegendClarifies the meaning of any non-standard shapes or styles within the calendar view.No
Current DateThe current date (today) is visually indicated but not automatically selected. It helps orient users.No
Date LabelDisplays the currently selected date or date range.Yes
ContainerThe outer wrapper that holds all of the calendar’s content (such as Date Label, Legend, and any supporting UI). The Calendar has a min-width of 316 px to ensure adequate spacing for Date Tile touch-targets to maintain accessibility.Yes
Navigation Icon ButtonAllows users to navigate forward or backward by month (sometimes by year). Can be disabled if calendar is constrained by a minimum or maximum date.Yes
Date TileEach tile within the calendar grid represents a single date. These tiles respond to interaction states and optional modifiers that provide additional meaning and visual clues.Yes
Start DateUsed within the Date Range Picker, the first date selected by the userYes
Date RangeUsed within the Date Range Picker, if a user is selecting a range or viewing data tied to a range (like availability, promotions, or multi-day events), you must highlight the selected or active date range visually within the calendar.Yes
End DateUsed within the Date Range Picker, the final date selected to complete the rangeYes
Selected DateUsed within the Date Picker, captures a single selected date, which is both visible in the input field and reflected within the calendar pop overYes

Date Tile States

States of Input Text
StateDescription
DefaultThe date is selectable and has no current selection or special meaning
HoverProvides a visual queue that a date tile is interactive and currently under the users cursor
SelectedThe user has chosen this date or it may be a predefined selection
DisabledThe date is outside the selectable range or not applicable (for instance, in the past or a cut-off date)
ErrorThe date input is invalid, conflicting or not permitted based on business logic

Questions?

Connect with the DLS Team on Slack or by email.

Resources

Check out additional resources.