Hello. I have a question. I want it to be active on Sundays from 11:00 to 20:00 and Mondays from 13:00 to 17:00.
Be inactive only on date and time 2024-04-28T09:00.
But the problem is that it doesn’t work.
mobiscroll.datepicker(‘#demo-booking-datetime’, {
display: ‘inline’,
controls: [‘calendar’, ‘timegrid’],
stepMinute: 60,
max: new Date(now.getFullYear(), now.getMonth(), now.getDate()+ 10),
min: now
width: null,
returnFormat: ‘iso8601’,
calendarType: ‘week’,
calendarSize: 2,
valid: [
{start: ‘13:00’, end: ‘17:00’,
recurring: { repeat: ‘weekly’, weekDays: ‘MO’ },
}
{start: ‘11:00’, end: ‘20:00’,
recurring: { repeat: ‘weekly’, weekDays: ‘SU’ },
}
],
invalid: [{
start: ‘2024-04-28T09:00’,
end: ‘2024-04-28T09:00’
}],
});
i am new please guide me. thank you so much🙏