MCPcopy Create free account
hub / github.com/angular/angular / getLocaleDateFormat

Function getLocaleDateFormat

packages/common/src/i18n/locale_data_api.ts:433–436  ·  view source on GitHub ↗
(locale: string, width: FormatWidth)

Source from the content-addressed store, hash-verified

431 * Use `Intl.DateTimeFormat` for date formating instead.
432 */
433export function getLocaleDateFormat(locale: string, width: FormatWidth): string {
434 const data = ɵfindLocaleData(locale);
435 return getLastDefinedValue(data[ɵLocaleDataIndex.DateFormat], width);
436}
437
438/**
439 * Retrieves a localized time-value formatting string.

Callers 2

getNamedFormatFunction · 0.90

Calls 1

getLastDefinedValueFunction · 0.85

Tested by

no test coverage detected