Skip to main content

@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

ParameterTypeDescription
date{ day: number; month: number; year: number; } | string | Datea valide date as either a Date, string, objec or a DateFormatter
formatIntl.DateTimeFormatOptionsThe formatting for the string
localestringlocale data used for formatting
Returns:

string

A localized string of the date provided