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

## DateFormatter.getDate() method

<b>Signature:</b>

```typescript
getDate(date?: {
        day: number;
        month: number;
        year: number;
    } | string | Date, format?: Intl.DateTimeFormatOptions, locale?: string): string;
```

## Parameters

|  Parameter | Type | Description |
|  --- | --- | --- |
|  date | { day: number; month: number; year: number; } \| string \| Date | a valide date as either a Date, string, objec or a DateFormatter |
|  format | Intl.DateTimeFormatOptions | The formatting for the string |
|  locale | string | locale data used for formatting |

<b>Returns:</b>

string

A localized string of the date provided
