Topic: React - Date picker
gaurangbhatt free asked 5 years ago
*_Expected behavior_*When a user selects the date picker, the date picker should only enable weekdays (M-F).
*_Actual behavior_*I tried multiple options but not able to set the date picker to meet my requirements. My requirements are
min date = today (working)
max date = today + 100 days (working)
disable weekends (Sunday & Saturday) (not able to figure out based onthe documentation)
Resources (screenshots, code snippets etc.)<br><MDBDatePicker id="datePicker" label="Order Date" minDate={this.state.minDate} getValue={this.getDatePickerValue} disablePast={true} format="MM/DD/YYYY" autoOk={true}/><br>
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Opened
- ForumUser: Free
- Premium support: No
- Technology: MDB React
- MDB Version: 4.23.1
- Device: Mac
- Browser: Chrome
- OS: macOS Catalina 10.15.2
- Provided sample code: Yes
- Provided link: No