Topic: Min Date is offset by one month

chase.tb pro asked 7 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
 $('.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?

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.

FREE CONSULTATION

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

Status

Closed

Specification of the issue

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