• Overview
@angular/common

getLocaleMonthNames

function
Deprecated

Retrieves months of the year for the given locale, using the Gregorian calendar.

  
    function getLocaleMonthNames(  locale: string,  formStyle: FormStyle,  width: TranslationWidth): readonly string[];
  
  

getLocaleMonthNames

readonly string[]

Retrieves months of the year for the given locale, using the Gregorian calendar.

@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.

@paramformStyleFormStyle

The required grammatical form.

@paramwidthTranslationWidth

The required character width.

@returnsreadonly string[]
Jump to details