Use a date picker to pick a date within a range. A date picker is a compact form of the calendar.
mode='date' to show a date-picker.
Set initial date¶
value= to pre-select a date.
Dates must be in ISO 8601 format. Date-only strings (e.g. "1970-01-01") are treated as UTC, not local.
Set placeholder text¶
placeholder= to show placeholder text.
Set min date¶
min= to specify a minimum date.
Set max date¶
max= to specify a maximum date.
Combine min and max date¶
max= to restrict selection between two dates.
range= to a
(min, max) tuple to restrict selection between two dates.
This is a shorthand notation for setting
Mark as required¶
mode to indicate that input is required.
Handle changes immediately¶
mode to handle changes immediately.
disabled=True to disable.