Topic: React - Date picker

gaurangbhatt free asked 3 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>

Please insert min. 20 characters.


Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.



Specification of the issue

  • User: 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