Topic: How can i set a preselect Date?

KeHa priority asked 5 months ago

How can i set a preselect Date for the Datepicker?

I alwaysed used that attribute data-value="date" at the input and then i update the instance in JS var datepicker = mdb.Datepicker.getOrCreateInstance(datePickerContainer); datepicker.update(datepickerOptions());

But this dont work anymore.

Kamila Pieńkowska staff answered 5 months ago

Do you want to set the initial date or choose the default date to which datepicker will navigate on the initial open?

I've prepared example of both:

Please insert min. 20 characters.


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



Specification of the issue

  • ForumUser: Priority
  • Premium support: Yes
  • Technology: MDB Standard
  • MDB Version: MDB5 6.2.0
  • Device: ThinkCentre
  • Browser: Firefox
  • OS: Win10
  • Provided sample code: No
  • Provided link: No