I am making an appointment system. I want to prevent appointments that are not on the opening hours.
$('input.datetimepicker-input').datetimepicker({
locale: '{{ eccube_config.locale }}',
format: 'YYYY-MM-DD HH:mm',
minDate: moment("{{minTime}}"),
disabledTimeIntervals: [
[moment().day("Monday").hour(0).minutes(0), moment().day("Monday").hour(9).minutes(30)]
]
});
It seems like the disabledTimeIntervals
option doesn't support the day unit. If you also know how to use disabledTimeIntervals
every day please help.