0

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.

Michael M.
  • 10,486
  • 9
  • 18
  • 34
jnpps
  • 39
  • 4
  • Try using the following code please: ```disabledTimeIntervals: [moment().day("Monday").hour(0).minutes(0), moment().day("Monday").hour(9).minutes(30)]``` – Gilles Heinesch Aug 30 '21 at 06:32
  • @GillesHeinesch thanks for the advice. but I don't think it is working neither.... – jnpps Aug 30 '21 at 08:31

0 Answers0