Hi I'm stuck in a problem. I have a bootstrap date time picker which allows user to pick a date from tomorrow onward. But the problem is When it comes to the final day of the month the date time picker shows a window like this.
All days are unpicke-able.This is not user friendly.So I want it to display the next month.Because it may confuse the customer.This happens only on the end date of the month.
My Jquery code looks like this
$('.datetime-input').datetimepicker({
format: "Y-MM-DD HH:00",
sideBySide: true,
useCurrent: false,
toolbarPlacement: "top",
showClose: true,
minDate: moment(new Date()).add(1, 'days').startOf('day'),
// maxDate:moment(new Date()).add(30, 'days').startOf('day')
});
I tried to set the default date of the date-time-picker to next date by using
defaultDate: new Date(//new month firstDay//)
Thinking that this will make it to load next month.But nothing became successful.Please help me.