Skip to main content
class Temporal.PlainMonthDay

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?: CalendarLike,
referenceISOYear?: number,
)

Properties

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

Methods

equals(other: Temporal.PlainMonthDay | PlainMonthDayLike | string): boolean
getCalendar(): CalendarProtocol
getISOFields(): PlainDateISOFields
toJSON(): string
toLocaleString(locales?: string | string[], options?: Intl.DateTimeFormatOptions): string
toPlainDate(year: { year: number; }): Temporal.PlainDate
toString(options?: ShowCalendarOption): string
valueOf(): never
with(monthDayLike: PlainMonthDayLike, options?: AssignmentOptions): Temporal.PlainMonthDay

Static Methods

from(item: Temporal.PlainMonthDay | PlainMonthDayLike | string, options?: AssignmentOptions): Temporal.PlainMonthDay