> Documentation index: https://www.gooddata.ai/docs/gooddata-ui/llms.txt lists every page of these docs as Markdown.

# resolveWeekStart()

- Package: [@gooddata/sdk-model](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-model/index.md)
- Kind: function
- Stability: alpha
- Source: https://github.com/gooddata/gooddata-ui-sdk/blob/rel/11.64/libs/sdk-model/src/settings/index.ts

> **Alpha API.** Initial API, highly likely to change outside SemVer. Don't build on it in production. See [API maturity](https://www.gooddata.ai/docs/gooddata-ui/latest/integrations/platform/api-maturity/index.md).
> 

Resolves the effective week start day from platform settings.

**Signature:**

```typescript
export declare function resolveWeekStart(settings: ISettings | undefined): WeekStart;
```

## Parameters

| Parameter | Type | Description |
| --- | --- | --- |
| settings | [ISettings](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-model/sdk-model.isettings/index.md) \| undefined | platform settings to read; `undefined` yields the `Sunday` default |

**Returns:**

[WeekStart](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-model/sdk-model.weekstart/index.md)

the resolved [WeekStart](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-model/sdk-model.weekstart/index.md)

## Remarks

Applies the feature-flag override (`enableNewUIWeekStartChange` together with `weekStartOnMondayEnabled` force Monday), otherwise honors the `weekStart` setting, defaulting to `Sunday` when it (or the whole settings object) is missing. This is the single source of the derivation shared by the dashboard's week-start selector and non-dashboard hosts.
