Topic: Datepicker Max Date Not Working

jeffrey free asked 3 years ago


Tomek Makowski staff answered 3 years ago


Hi

You have to delete option min: true

Regards


jeffrey free commented 3 years ago

I want a max AND min date. Will this not work?


Tomek Makowski staff commented 3 years ago

max date is set but when you type [2020,5,30] then 5 is equal june and 6 july etc.


jeffrey free commented 3 years ago

Is that the expected behavior? I assumed 5 is equal to May and 6 June, etc. No?


Tomek Makowski staff commented 3 years ago

Yes this is expected behavior. In JavaScript months are counting from 0 to 11 and that's why in data picker 5 is equal to June.



Please insert min. 20 characters.

FREE CONSULTATION

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

Status

Answered

Specification of the issue

  • ForumUser: Free
  • Premium support: No
  • Technology: MDB jQuery
  • MDB Version: 4.19.0
  • Device: pc
  • Browser: chrome
  • OS: win 10
  • Provided sample code: No
  • Provided link: Yes