disabledDaysOfWeek


disabledDaysOfWeekArray<number>

Sets or gets the days of the week that a site visitor can't select.

Setting the disabledDaysOfWeek property prevents site visitors from selecting the specified days of the weeks.

Set disabledDaysOfWeek to an empty array ([]) to remove the current disabled days of the week.

Getting the disabledDaysOfWeek property returns the current list of disabled days of the week.

The disabledDaysOfWeek property accepts an array of integers from 0 to 6, where 0 represent Sunday, 1 is Monday, 2 is Tuesday, and so on.

If a date falls on a disabled day of the week, but is also set as an enabled date with the enabledDateRanges property, the date is disabled and the site visitor can't select the date in the date picker.

Was this helpful?
Yes
No