> To build or manage a Wix site with an AI agent, follow https://www.wix.com/headless/skill.md
> It builds a new Wix site or puts your own site online, from a prompt, and keeps changing it afterwards. The pages are code in any web technology, and Wix runs the backend.
> It works through the Wix plugin (the Wix MCP and the Wix skills), the Wix CLI or no Wix login, and puts the site live on Wix hosting or on another host.
> Business features include a store, bookings, events and tickets, a restaurant, a blog, forms, members and many more.
> Read the Wix skills online at https://www.wix.com/skills
> 
> Portal Navigation:
> 
> - Append `.md` to any URL under `https://dev.wix.com/docs/` to get its markdown version.
> - Pages are either content pages (article or reference text) or menu pages (a list of links to child pages).
> - To get a menu page, truncate any URL to a parent path and append `.md` (e.g. `https://dev.wix.com/docs/sdk.md`, `https://dev.wix.com/docs/sdk/core-modules.md`).
> - If a reference page seems to be missing its schema (parameters, return types, or type definitions), append `?schema=true` to its `.md` URL (e.g. `https://dev.wix.com/docs/contexts/contexts/stores/category-info/use-category-info-context.md?schema=true`).
> - Top-level index of all portals: https://dev.wix.com/docs/llms.txt
> - Full concatenated docs: https://dev.wix.com/docs/llms-full.txt

# Method name: disabledDaysOfWeek()

# Method package: w

# Method menu location: w --> MobileDatePicker --> disabledDaysOfWeek

# Method Link: https://dev.wix.com/docs/velo/velo-only-apis/$w/mobile-date-picker/disabled-days-of-week.md

# Method Description:

Sets or gets the days of the week that an app user can't select.

Setting `disabledDaysOfWeek` prevents app users
 from selecting the specified days of the week. 

 Set `disabledDaysOfWeek` to an empty array (`[]`) to remove the current
 disabled days of the week.

 Getting `disabledDaysOfWeek` returns the
 current list of disabled days of the week.

 `disabledDaysOfWeek` accepts an array of integers from 0 to
 6, where 0 represents 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 `enabledDateRanges`, the date is
 disabled and the app user can't select the date in the date picker.



# Method Code Examples:

*** Note: do not assume any prop names or enum values other than the ones in the example.

## Get which days of the week are disabled

```javascript
let days = $w("#myMobileDatePicker").disabledDaysOfWeek;

let secondDisabledDay = days[1]; // 6
```

## Disable weekends

```javascript
$w("#myMobileDatePicker").disabledDaysOfWeek = [0, 6];
```

## Disable weekends and holidays that occur during date ranges that are enabled

```javascript
const roster = [
    {
      startDate: new Date('1/1/2024'),
      endDate: new Date('1/31/2024')
    },
    {
      startDate: new Date('4/01/2024'),
      endDate: new Date('4/30/2024')
    },
    {
      startDate: new Date('7/01/2024'),
      endDate: new Date('7/31/2024')
    },
    {
      startDate: new Date('10/01/2024'),
      endDate: new Date('10/31/2024')
    }
  ];
  
  const holidays2024 = [
    {
      startDate: new Date('4/15/2024'),
      endDate: new Date('4/17/2024')
    },
    {
      startDate: new Date('12/25/2024'),
      endDate: new Date('01/01/2025')
    }
  ];
  
  $w('#myMobileDatePicker').enabledDateRanges = roster;        // Available on 1st month of each quarter   
  $w('#myMobileDatePicker').disabledDateRanges = holidays2024; // Not available on holidays
  $w('#myMobileDatePicker').disabledDaysOfWeek = [0, 6];       // Not available on weekends
```

---