ChronosChronos

monthName

Get the name of a month.

monthName()

Get the name of a month.

Get the name of a month

Signature

monthName(index?: Enumerate<12>): MonthName

Parameters

  • index (optional): A number from 0 to 11 representing the month, where 0 is January and 11 is December. If omitted, it defaults to the current month from the Chronos instance.

Return Value

  • MonthName — The full name of the month ("January", "February", ..., "December").

Example Usage

playground.ts

Info

  • This method supports overriding the current month with a specific index.
  • Internally, it maps indices 0–11 to the English names of the months.

Last updated: Thu, May 21, 2026 03:51:36PM (UTC)

On this page