ComponentsDate Picker

DatePicker

A date picker, popup calendar or date range picker is a graphical user interface widget which allows the user to select a date from a calendar.

GitHub LogoSource Code

Actions

Use the showActions property to display Apply/Cancel buttons at the bottom.

Custom labels

Use the labels object to customize the internal labels of the date picker.

Controlled

Range mode

Use rangeMode to enable the selection of a range of dates. When doing so, use startValue and endValue to set the initial values, instead of the value prop.

Restricted selection

You can restrict the selection of dates by setting the minimumDate and maximumDate properties.

Selection list

Custom content can be added to the Date Picker by using the startAdornment property. This can be used to display a list of predefined dates, for example.