Experimental: This is an experimental technology
Check the Browser compatibility table carefully before using this in production.
The toInstant()
method of Temporal.ZonedDateTime
instances returns a new Temporal.Instant
object representing the instant of this date-time.