enabledDateRanges


enabledDateRangesArray<DateRange>

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:

  • An array of date ranges to enable, each with a start date and an end date.
  • An empty array ([]), to disable all dates.
  • Null, to ignore 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:

Was this helpful?
Yes
No