Topic: Datepicker Max Date Not Working
jeffrey free asked 4 years ago
Max date not being set. Not sure why: https://mdbootstrap.com/snippets/jquery/jeffrey/2147270
Tomek Makowski staff answered 4 years ago
Hi
You have to delete option min: true
Regards
jeffrey free commented 4 years ago
I want a max AND min date. Will this not work?
Tomek Makowski staff commented 4 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 4 years ago
Is that the expected behavior? I assumed 5 is equal to May and 6 June, etc. No?
Tomek Makowski staff commented 4 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
- 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