The Date Range Picker use the current value of the input to initialize, and update the input if new dates are chosen.
This example shows the option to predefine date ranges that the user can choose from a list.
The Date Range Picker can be turned into a single date picker widget with only one calendar. In this example, dropdowns to select a month and year have also been enabled at the top of the calendar to quickly jump to different months.
If you're using a date range as a filter, you may want to attach a picker to an input but leave it empty by default. This example shows how to accomplish that using the autoUpdateInput
setting, and the apply
and cancel
events.
The Date Range Picker can also be used to select times. Hour, minute and (optional) second dropdowns are added below the calendars. An option exists to set the increment count of the minutes dropdown to e.g. offer only 15-minute or 30-minute increments.