@microsoft/fast-foundation > DateFormatter > getDate
DateFormatter.getDate() method
Signature: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 |
string
A localized string of the date provided