Loading lesson path
Temporal.PlainMonthDay
Temporal.PlainMonthDay() object represents the month and day of an ISO 8601 calendar date, without a year or a time zone like (e.g.
Formula
05 - 17). The Temporal.PlainMonthDay Object
Temporal.PlainMonthDay() object is a month and day object. It represents the month and day of an ISO 8601 calendar date, without a year or a time zone.
Formula
05 - 17.const date = new Temporal.PlainMonthDay(5, 17);The Temporal.PlainMonthDay Properties
Temporal.PlainMonthDay has 3 properties of calendar date information.
const date = new Temporal.PlainMonthDay(5, 17);The Temporal.PlainMonthDay Format
Formula
(an extension to the ISO 8601 / RFC 3339 format):Formula
MM - DD[u - ca = calendar_id]Returns true if two PlainDate objects are identical from() Returns a new PlainDate object from another object or a string toPlainDate()
Returns a new PlainDate with specified fields modified withCalendar() Returns a new PlainDate with a different calendar system
Returns an RFC 9557 format string for JSON serialization toLocaleString()
Formula
Returns a language - sensitive representation of the date toString()Returns an RFC 9557 format string representation valueOf() Throws a TypeError (prevents temporals from being converted to primitives)
Calendar system identifier ("iso8601") day
Formula
The day as an integer (1 - 31)monthCode
Formula
A calendar - specific string code for the month ("M01")The Temporal.PlainMonthDay object does not have a month property.