# getDayStrings Type documentation

## TypeScript declaration

### [getDayStrings](<https://github.com/siemens/element/blob/main/projects/element-ng/datepicker/date-time-helper.ts#L82-L97>)

**Kind:** constant

```
import { getDayStrings } from '@siemens/element-ng/datepicker';
```

Get local specific weekdays as string using DateTimeFormat.

Returns: array of week days.

```
(locale: string, weekStart?: WeekStart, format?: "short" | "narrow" | "long") => string[] = ...
```

```
getDayStrings(locale: string, weekStart?: WeekStart = 'monday', format?: "short" | "narrow" | "long" = 'short'): string[]
```

Get local specific weekdays as string using DateTimeFormat.

Returns: array of week days.

#### Parameters

| Name | Type | Default | Description |
| --- | --- | --- | --- |
| [locale](<https://github.com/siemens/element/blob/main/projects/element-ng/datepicker/date-time-helper.ts#L83-L83>) | `string` |  | • current local |
| [weekStart](<https://github.com/siemens/element/blob/main/projects/element-ng/datepicker/date-time-helper.ts#L84-L84>) (optional) | `WeekStart` | `'monday'` | • start of the week |
| [format](<https://github.com/siemens/element/blob/main/projects/element-ng/datepicker/date-time-helper.ts#L85-L85>) (optional) | `"short" \| "narrow" \| "long"` | `'short'` | • display format |

**Returns:** [string](<https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String>)`[]`

### Types Documentation

### [WeekStart](<https://github.com/siemens/element/blob/main/projects/element-ng/datepicker/si-datepicker.model.ts#L9-L9>)

**Kind:** type alias

```
import type { WeekStart } from '@siemens/element-ng/datepicker';
```

```
type WeekStart = 'monday' | 'saturday' | 'sunday' | undefined
```
