Experimental: This is an experimental technology
Check the Browser compatibility table carefully before using this in production.
The toPlainYearMonth() method of Temporal.PlainDate instances returns a new Temporal.PlainYearMonth object representing the year and month of this date in the same calendar system.