minDate & maxDate don't work with Month Picker
See original GitHub issueI have this DatePicker component:
<DatePicker selected={new Date()} onChange={date => {this.changeFiltersDates(date, type)}} dateFormat="MM/yyyy" showMonthYearPicker className="private-date-filter" name="from" calendarClassName="date-filter-calendar" placeholderText="From" minDate={this.defaultMinDate} maxDate={this.defaultMaxDate} />
where
this.defaultMinDate = new Date(2017, 0, 1); this.defaultMaxDate = new Date();
but DatePicker component dont’t work correctly, because don’t respect the minDate and maxDate props.
minDate allows the selection of an extra year back and maxDate allows the selection of one more year ahead.
Issue Analytics
- State:
- Created 4 years ago
- Comments:12 (4 by maintainers)
Top Results From Across the Web
datePicker minDate and maxDate do not work - Stack Overflow
minDate is "10/21/2014" and maxDate is "6/30/2015". The outcome when I click on the input box to select a date is calendar months...
Read more >Datepicker Widget - jQuery UI API Documentation
The jQuery UI Datepicker is a highly configurable plugin that adds datepicker functionality to your pages. You can customize the date format and...
Read more >How to Set minimum and maximum date in jQuery UI Datepicker
With minDate and maxDate options, you can restrict date range of jQuery UI Datepicker widget. The user will only able to select the...
Read more >ion-datetime
Which values you want to select. 'date' will show a calendar picker to select the month, day, and year. 'time' will show a...
Read more >Set datepicker min date from another datepicker
Hi everyone, I have two datepickers that should work together as a From -> To range where the max date is always the...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@nonconformatevi Can you please close this issue if it’s no longer valid.
Thanks very much @gautam-relayr!