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 headingcalendarId: stringreadonly
Jump to headingday: numberreadonly
Jump to headingdayOfWeek: numberreadonly
Jump to headingdayOfYear: numberreadonly
Jump to headingdaysInMonth: numberreadonly
Jump to headingdaysInWeek: numberreadonly
Jump to headingdaysInYear: numberreadonly
Jump to headingera: string | undefinedreadonly
Jump to headingeraYear: number | undefinedreadonly
Jump to headinginLeapYear: booleanreadonly
Jump to headingmonth: numberreadonly
Jump to headingmonthCode: stringreadonly
Jump to headingmonthsInYear: numberreadonly
Jump to headingweekOfYear: number | undefinedreadonly
Jump to headingyear: numberreadonly
Jump to headingyearOfWeek: number | undefinedMethods Jump to heading
Jump to headingadd(durationLike: ,options?: ArithmeticOptions,): Temporal.PlainDateJump to headingequals(other: ): booleanJump to headingsince(other: ,options?: DifferenceOptions<"year"
| "month"
| "week"
| "day">,): Temporal.DurationJump to headingsubtract(durationLike: ,options?: ArithmeticOptions,): Temporal.PlainDateJump to headingtoJSON(): stringJump to headingtoLocaleString(locales?: string | string[],options?: Intl.DateTimeFormatOptions,): stringJump to headingtoPlainDateTime(temporalTime?: ): Temporal.PlainDateTimeJump to headingtoString(options?: ShowCalendarOption): stringJump to headingtoZonedDateTime(timeZoneAndTime: string | { timeZone: TimeZoneLike; plainTime?: ; }): Temporal.ZonedDateTimeJump to headinguntil(other: ,options?: DifferenceOptions<"year"
| "month"
| "week"
| "day">,): Temporal.DurationJump to headingvalueOf(): neverJump to headingwith(dateLike: PlainDateLike,options?: AssignmentOptions,): Temporal.PlainDateStatic Methods Jump to heading
Jump to headingcompare(one: ,two: ,): ComparisonResultJump to headingfrom(item: ,options?: AssignmentOptions,): Temporal.PlainDate