[ Web Proxy ]
URL:
Viewing: https://angular.dev/api/common/getLocaleDateFormat [Back]  [Original]

getLocaleDateFormat Angular Skip to main content
menu
close
more_horiz
menuAPI
@angular/common

getLocaleDateFormat

function
deprecatedsince v18

Retrieves a localized date-value formatting string.

FormatWidthInternationalization (i18n) Guide

Deprecation warning

Angular recommends relying on the Intl API for i18n. Use Intl.DateTimeFormat for date formating instead.

orthos-back.svg [orthos-back.svg]

On this page

    arrow_upward_alt Back to the top

    API

    function getLocaleDateFormat(locale: string, width: FormatWidth): string;
    @deprecated

    Angular recommends relying on the Intl API for i18n. Use Intl.DateTimeFormat for date formating instead.

    @paramlocalestring

    A locale code for the locale format rules to use.

    @paramwidthFormatWidth

    The format type.

    @returnsstring

    The localized formatting string.

    Jump to details

    Web Proxy Viewer  |  New URL  |  Original Page