Topic: How can i set a preselect Date?
                  
                  KeHa
                  priority
                  asked 1 year 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 1 year 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: https://mdbootstrap.com/snippets/standard/kpienkowska/5905533
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Answered
- 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