Experimental: This is an experimental technology
Check the Browser compatibility table carefully before using this in production.
The until()
method of Temporal.PlainDate
instances returns a new Temporal.Duration
object representing the duration from this date to another date (in a form convertible by Temporal.PlainDate.from()
). The duration is positive if the other date is after this date, and negative if before.
This method does other - this
. To do this - other
, use the since()
method.