I want to enable only 3 months from current date in [bootstrap datepicker](https://bootstrap-datepicker.readthedocs.io/en/latest/).

```
function addThreeMonthsToStartDate(today) {
    var lastDate = new Date(today.getFullYear(), today.getMonth()+3, getDate());
    return lastDate;
}

$("#startdate").datepicker({
    isDisabled: function(date) {
        return date.valueOf() < Date.now() ? false : true;
    },
    autoClose: true,
    viewStart: 0,
    weekStart: 1,
    maxDate: lastDate,
    dateFormat: "dd/mm/yyyy"
});

```

Any ideas?