Skip to main content

PlainDate

class Temporal.PlainDate
unstable

A Temporal.PlainDate represents a calendar date. "Calendar date" refers to the concept of a date as expressed in everyday usage, independent of any time zone. For example, it could be used to represent an event on a calendar which happens during the whole day no matter which time zone it's happening in.

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

Constructors Jump to heading

new
Jump to headingPlainDate(
isoYear: number,
isoMonth: number,
isoDay: number,
calendar?: string,
)

Properties Jump to heading

readonly
Jump to heading[Symbol.toStringTag]: "Temporal.PlainDate"
readonly
Jump to headingday: number
readonly
Jump to headingera: string | undefined
readonly
Jump to headingeraYear: number | undefined
readonly
Jump to headingmonth: number
readonly
Jump to headingweekOfYear: number | undefined
readonly
Jump to headingyear: number
readonly
Jump to headingyearOfWeek: number | undefined

Static Methods Jump to heading

Back to top