I am using “react-datepicker”: “^3.0.0”,In the year datepicker
I have set the limit range for 2years, if i select 2020 jan 01, then it will showing the option 2020 and 2021 on the popver. But if select next day, Unfortunately, it is showing 2021 and 2022 except 2020.
I cant able to access the 2020 year dates.
`<DatePicker
className={'form-control'}
customInput={<CustomInput ref={ref} />}
dateFormat={dateFormat}
minDate={setDateTimeZoneNew(startDate)}
maxDate={maxDate}
onInputClick={hideMonthAndYear}
onSelect={hideMonthAndYear}
onDayMouseEnter={hideMonthAndYear}
onChange={(date) => { updateDateValue('endDate', date); }}
renderCustomHeader={renderPopoverHeader}
shouldCloseOnSelect={(!showMonth && !showYear)}
selected={setDateTimeZoneNew(endDate)}
showMonthYearPicker={isMonthYearPicker || showMonth || false}
showYearPicker={showYear} />`
This is my date range actual selection
But in this year 2018 is disabled
New contributor
Robin Durairaj is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.