---
id: fast-foundation.dateformatter.getday
title: DateFormatter.getDay() 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; [getDay](./fast-foundation.dateformatter.getday.md)

## DateFormatter.getDay() method

<b>Signature:</b>

```typescript
getDay(day?: number, format?: DayFormat, locale?: string): string;
```

## Parameters

|  Parameter | Type | Description |
|  --- | --- | --- |
|  day | number | Day to localize |
|  format | [DayFormat](./fast-foundation.dayformat.md) | The formatting for the day |
|  locale | string | The locale data used for formatting |

<b>Returns:</b>

string

- A localized number for the day
