Experimental: This is an experimental technology
Check the Browser compatibility table carefully before using this in production.
The calendarId
accessor property of Temporal.PlainDateTime
instances returns a string representing the calendar used to interpret the internal ISO 8601 date.
For a list of commonly supported values, see Intl.Locale.prototype.getCalendars()
.
The set accessor of calendarId
is undefined
. You cannot change this property directly. Use the withCalendar()
method to create a new Temporal.PlainDateTime
object with the desired new value.