# CalendarOptions

Canonical page: https://www.adaptabletools.com/docs/reference/calendaroptions

Options for managing holidays, weekends and working days in AdapTable.

A working day is any calendar day that is neither a configured weekend day
nor a configured holiday. Display formatting of dates is unrelated — use
Format Column (or AG Grid value formatters) for that.

```ts title="TypeScript"
export interface CalendarOptions 
```

## Properties

| Property | Type | Description | Default |
| --- | --- | --- | --- |
| [holidays](https://www.adaptabletools.com/docs/reference/calendaroptions.md#holidays) | `(Date \| string)[] \| ((baseContext: `[`BaseContext`](https://www.adaptabletools.com/docs/reference/basecontext.md)`) => (Date \| string)[] \| undefined)` | Public / bank holidays for the current user (calendar days only).<br/><br/>These are distinct from weekends: a Saturday is not a holiday unless it is<br/>also listed here. Entries may be `Date` instances or ISO date strings<br/>(`yyyy-MM-dd`). | undefined |
| [weekendDays](https://www.adaptabletools.com/docs/reference/calendaroptions.md#weekenddays) | `number[]` | Days of the week treated as weekend (non-working), using JavaScript<br/>`Date.getDay()` values: `0` = Sunday … `6` = Saturday. | [0, 6] |
| [weekStartsOn](https://www.adaptabletools.com/docs/reference/calendaroptions.md#weekstartson) | `number` | First day of the week for week-related Expression Functions<br/>(`WEEK`, `START_OF_WEEK`, `IS_THIS_WEEK`), using JavaScript<br/>`Date.getDay()` values: `0` = Sunday … `6` = Saturday.<br/><br/>Independent of . | 0 |

## Property Details

### holidays

Public / bank holidays for the current user (calendar days only).

These are distinct from weekends: a Saturday is not a holiday unless it is
also listed here. Entries may be `Date` instances or ISO date strings
(`yyyy-MM-dd`).

```ts title="TypeScript"
holidays?: (Date | string)[] | ((baseContext: BaseContext) => (Date | string)[] | undefined);
```

###### Default Value

undefined

###### Property Value

`(Date | string)[] | ((baseContext: `[`BaseContext`](https://www.adaptabletools.com/docs/reference/basecontext.md)`) => (Date | string)[] | undefined)`

### weekendDays

Days of the week treated as weekend (non-working), using JavaScript
`Date.getDay()` values: `0` = Sunday … `6` = Saturday.

```ts title="TypeScript"
weekendDays?: number[];
```

###### Default Value

[0, 6]

###### Property Value

`number[]`

### weekStartsOn

First day of the week for week-related Expression Functions
(`WEEK`, `START_OF_WEEK`, `IS_THIS_WEEK`), using JavaScript
`Date.getDay()` values: `0` = Sunday … `6` = Saturday.

Independent of .

```ts title="TypeScript"
weekStartsOn?: number;
```

###### Default Value

0

###### Property Value

`number`
