Experimental: This is an experimental technology
Check the Browser compatibility table carefully before using this in production.
The withCalendar() method of Temporal.ZonedDateTime instances returns a new Temporal.ZonedDateTime object representing this date-time interpreted in the new calendar system. Because all Temporal objects are designed to be immutable, this method essentially functions as the setter for the date-time's calendarId property.
To replace the date-time component properties, use the with() method. To replace its time zone, use the withTimeZone() method.