Skip to main content
Temporal.PlainMonthDay - Temporal - Web documentation
class Temporal.PlainMonthDay
Unstable

A Temporal.PlainMonthDay represents a particular day on the calendar, but without a year. For example, it could be used to represent a yearly recurring event, like "Bastille Day is on the 14th of July."

See https://tc39.es/proposal-temporal/docs/monthday.html for more details.

Constructors

new
PlainMonthDay(
isoMonth: number,
isoDay: number,
calendar?: string,
referenceISOYear?: number,
)

Properties

readonly
[Symbol.toStringTag]: "Temporal.PlainMonthDay"
readonly
calendarId: string
readonly
day: number
readonly
monthCode: string

Methods

equals(other: ): boolean
toJSON(): string
toLocaleString(
locales?: string | string[],
): string
toPlainDate(year: { year: number; }): Temporal.PlainDate
toString(options?: ShowCalendarOption): string
valueOf(): never

Static Methods