---
id: fast-foundation.dateformatter.getweekdays
title: DateFormatter.getWeekdays() method
hide_title: true
---
<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[@microsoft/fast-foundation](./fast-foundation.md) &gt; [DateFormatter](./fast-foundation.dateformatter.md) &gt; [getWeekdays](./fast-foundation.dateformatter.getweekdays.md)

## DateFormatter.getWeekdays() method

<b>Signature:</b>

```typescript
getWeekdays(format?: WeekdayFormat, locale?: string): string[];
```

## Parameters

|  Parameter | Type | Description |
|  --- | --- | --- |
|  format | [WeekdayFormat](./fast-foundation.weekdayformat.md) | The formatting for the weekdays |
|  locale | string | The locale data used for formatting |

<b>Returns:</b>

string\[\]

- An array of the weekday labels
