Sets or gets ranges of dates that a site visitor can select.
Setting the enabledDateRanges
property lets site visitors
select dates in the specified ranges, provided that the dates aren't
disabled by some other property.
Note: All dates outside the set ranges are disabled.
Set enabledDateRanges
to:
[]
), to disable all dates.enabledDateRanges
. Use this to ignore previously set enabled date ranges.Getting the enabledDateRanges
property returns the current
list of enabled date ranges.
Ranges are inclusive. This means that January 10th and February 10th are enabled when specifying a range from January 10, 2025 to February 10, 2025.
Disabled dates override any dates enabled with the enabledDateRanges
property.
This includes dates disabled with the Wix Editor and with the following properties:
disabledDateRanges
disabledDaysOfWeek
minDate
maxDate
This means that if a date matches both enabled and disabled properties, the site visitor
can't select the date in the date picker.