Topic: Min Date is offset by one month
I'm trying to set the minimum possible date but the picker gui always sets the minimum date to one month ahead of whatever date I enter. For instance, the javascript looks like this:
// Data Picker Initialization $('.datepicker').pickadate({ min: new Date(2017,1,12), max: true, format: 'mm/dd/yy', formatSubmit: 'yyyy-mm-dd' });But then the gui shows the following which is one month ahead of where I want to start: https://drive.google.com/a/springmobile.com/file/d/0Bya714IGqPgKNERmdlh4U2RPajA/view?usp=sharing Any ideas?
Add comment
chase.tb pro answered 7 years ago
Disregard the question. I realize that this has been addressed on the Datepicker page. Months are zero-indexed. Now to get my application to works with that.
Closed
This topic is closed.
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Status
Closed
Specification of the issue
- User: Pro
- Premium support: No
- Technology: MDB jQuery
- MDB Version: -
- Device: -
- Browser: -
- OS: -
- Provided sample code: No
- Provided link: Yes