Holiday Notice: Support will be provided on a limited scale from December 24th, 2024, to January 2nd, 2025. Happy holidays and a wonderful New Year!


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>



Please insert min. 20 characters.

FREE CONSULTATION

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

Status

Opened

Specification of the issue

  • 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