Topic: Min Date is offset by one month

chase.tb pro asked 5 years ago

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
 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: Any ideas?

chase.tb pro answered 5 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.


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



Specification of the issue

  • User: Pro
  • Premium support: No
  • Technology: MDB jQuery
  • MDB Version: -
  • Device: -
  • Browser: -
  • OS: -
  • Provided sample code: No
  • Provided link: Yes