getDateTimeFormatter
[ Function ]
public static getDateTimeFormatter(
locale: string | undefined,
timeZone: string | undefined,
hour12: boolean | undefined,
type: Localization.FormatType = 'full'
): Intl.DateTimeFormat;
Returns a cached Intl.DateTimeFormat. If no parameter is specified, the current user setting is used.
Parameter
Name | Type | Description |
---|---|---|
locale | Desired locale e.g. de-DE | |
timeZone | Desired time zone | |
hours12 | Presentation in 12-hour format? | |
type | Formatting type |
Return value
Type | Description |
---|---|
Returns a cached Intl.DateTimeFormat. |
Available from version 1.12 |