@microsoft/fast-foundation > DateFormatter > getYear
DateFormatter.getYear() method
Signature:getYear(year?: number, format?: YearFormat, locale?: string): string;
Parameters
Parameter | Type | Description |
---|---|---|
year | number | The year to localize |
format | YearFormat | The formatting for the year |
locale | string | The locale data used for formatting |
string
- A localized string for the year