Problem in bootstrap datepicker

Hi I need some help please,

I am using this plugins bootstrap-datepicker. I have startdate datepicker and 1 input textbox . I want to show multiple months base on my input range number example I will input 15 and my startdate will be 28/06/2018 (DD/MM/YYY) .so it will show the month of June and JULY and the day 19th of July will be bold. how can I achieve this ?

Thank you in advance.

I have this code from now but it wouldn’t show multiple months.

$('#startdate').datepicker({

format: 'mm/dd/yyyy',
 beforeShowDay: function (date) {

    if (date >= startdate && date <= endate) {
        return [true, 'ui-state-error', ''];
    }
    return [true, '', ''];
 }

});

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.