Experimental: This is an experimental technology
Check the Browser compatibility table carefully before using this in production.
The startOfDay()
method of Temporal.ZonedDateTime
instances returns a Temporal.ZonedDateTime
object representing the first instant of this date in the time zone. It usually has a time of 00:00:00
, but may be different if the midnight doesn't exist due to offset changes, in which case the first time that exists is returned.
It is equivalent to calling withPlainTime()
with no arguments.