MCPcopy Index your code
hub / github.com/angular/angular / getLocaleDateFormat

Function getLocaleDateFormat

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

Source from the content-addressed store, hash-verified

417 * Use `Intl.DateTimeFormat` for date formating instead.
418 */
419export function getLocaleDateFormat(locale: string, width: FormatWidth): string {
420 const data = ɵfindLocaleData(locale);
421 return getLastDefinedValue(data[ɵLocaleDataIndex.DateFormat], width);
422}
423
424/**
425 * Retrieves a localized time-value formatting string.

Callers 2

getNamedFormatFunction · 0.90

Calls 1

getLastDefinedValueFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…