Get Current Date with JavaScript Temporal API

Nov 09, 2021

User avatar


Scott Tolinski

In this post, we'll show you how to access the current day with the Temporal API.


Current Day


Current Month


Current Current Year


You get the point. It's really explicit and easy once you know where to look. You are getting a Temporal date and then accessing date properties like day, month, year.

Temporal.Now.plainDateISO() - get the current date in the system time zone and ISO-8601 calendar

So, what other properties exist on a Temporal plain date?

This was a quick one with a few key snippets, stay tuned for more Temporal content.