Datepicker Max Date Not Working


Topic: Datepicker Max Date Not Working

jeffrey asked 5 years ago

Tomek Makowski staff answered 5 years ago

Hi

You have to delete option min: true

Regards


jeffrey commented 5 years ago

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


Tomek Makowski staff commented 5 years ago

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


jeffrey commented 5 years ago

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


Tomek Makowski staff commented 5 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
  • User: 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
Tags