Is it possible to specify the date during initialization using the Eternicode Bootstrap Datepicker? By default, when initializing the picker, the current date will be selected. I want a different date (in the future) to be selected. Is this possible and how so?
Here is my initialization code:
datePicker = detePickerElem.datepicker({
format: 'mm/dd/yyyy',
maxViewMode: 'months',
startDate: new Date(),
todayBtn: true,
todayHighlight: true,
weekStart: 1
});
datePicker.datepicker('setDate', new Date(futureDateObject));
I've tried using the setDate
method to set the date after initialization, but this doesn't do anything. Note that for various reasons I'm using an older release (v1.3) of the project and am not able to migrate to a newer release, however I can fork the repo and modify the source if needed.