The EndDate setting end time in the Bootstrap-datetimepicker view is 2016-08, (that is, dates after August are not selectable) and 2016-06 on the calendar, two months apart, that is, the date after June is not selectable
WORKAROUND: Set end date to add two months by default
But when the need to enddate for 11 or December, need to EndDate set to 2016-13/2016-14, this non-date format, plug-in is not recognized, the final solution is to modify the plugin
About 800 lines in datetimepicker.js.
if (year = = Endyear) {
Months.slice (Endmonth). addclass (' disabled ');
}
In JS
Months will get two left and right arrows and 12 dates for the selected date, so it takes +2
Change this code to
if (year = = Endyear) {
Months.slice (endmonth+2). addclass (' disabled ');
}
Two months ahead of normal time after enddate set in Bootstrap-datetimepicker view