Topic: Datepicker Max Date Not Working
Max date not being set. Not sure why: https://mdbootstrap.com/snippets/jquery/jeffrey/2147270
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.
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Answered
- 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