javascriptreactjsmaterial-uimomentjsmui-x-date-picker

MUI X Date Picker wont show dates before 1900


i want a DatePicker that allows the user to set dates from 1850s, but in the mui datepicker starts from 1900s.

ive recreated the issue in this codesandbox

im using mui in the rest of the project, so i really dont wanna switch to another package, also i've tried replacing momentjs with datefns and dayjs to no avail


Solution

  • as evolutionxbox pointed out mui The dates are limited to between 1900 and 2099, however adding minDate={moment(minDate)} prop to along with corresponding shouldDisableYear seems to have to have fixed the issue.