Experimental: This is an experimental technology
Check the Browser compatibility table carefully before using this in production.
The equals()
method of Temporal.PlainDate
instances returns true
if this date is equivalent in value to another date (in a form convertible by Temporal.PlainDate.from()
), and false
otherwise. They are compared both by their date values and their calendars, so two dates from different calendars may be considered equal by Temporal.PlainDate.compare()
but not by equals()
.