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.
On this page
This demo lets you preview the date picker component, its variations, and configuration options.
For examples of all variants, please visit Storybook.
There are two Date Picker types.
Use a date picker to select a single date, such as a payment date. Date pickers can be used to display past, present, or future dates. Dates can be inputted by typing or using the calendar. Date picker requires a day, month, and year. The placeholder can be localized.
Use a date range picker to select a range, such as holiday dates. Date range pickers can be used to display past, present, or future dates. Dates can be inputted by typing or using the calendar. Note that date range picker requires a day, month, and year, and the placeholder can be localized. The date range picker uses an input mask to let users focus on the first and second date separately. For accessibility, label the date range picker with a name that explains the purpose of both dates, such as ’From Date - To Date’ or ‘Arrival Date and Departure Date’.
Connect with the DLS Team on Slack or by email.
Check out additional resources.