Alfian Firdaus free asked 6 years ago


Hi there, I want to create date of birth, what should I do to get year 1955-2000 using DatePicker. Big Thanks,

Michal Szymanski staff answered 6 years ago


Try this:
$('.datepicker').pickadate({
        selectMonths: true, // Creates a dropdown to control month
        selectYears: 50, // Creates a dropdown of 50 years to control year
        min: [1971,0,1],
        max: [1998,11,31]
    });

Alfian Firdaus free answered 6 years ago


Hi, What I need is to get year min: 1971, max: 1998. But its already solved with your documentation. Now, my issue is the DatePicker doesn't scrolling, I already tested it on Safari 9.1.1, Chrome 51.0.2704.103 and Firefox 47.0. I created datepicker with year min:1971 and max:1998 and its succeed, but of course its need scrolling to get least year (1971). check this out please : https://kerjabilitas.com/v2/test.php.

Michal Szymanski staff answered 6 years ago


Hi, I'm not sure what exactly do you mean, but you can find all necessary info in our documentation Take a look at it and I'm sure you will find a solution on your own.

Please insert min. 20 characters.

FREE CONSULTATION

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

Status

Specification of the issue

  • User: Free
  • Premium support: No
  • Technology: General Bootstrap questions
  • MDB Version: -
  • Device: -
  • Browser: -
  • OS: -
  • Provided sample code: No
  • Provided link: No
Tags