Menu
×
   ❮     
HTML CSS JAVASCRIPT SQL PYTHON JAVA PHP HOW TO W3.CSS C C++ C# BOOTSTRAP REACT MYSQL JQUERY EXCEL XML DJANGO NUMPY PANDAS NODEJS DSA TYPESCRIPT ANGULAR ANGULARJS GIT POSTGRESQL MONGODB ASP AI R GO KOTLIN SWIFT SASS VUE GEN AI SCIPY AWS CYBERSECURITY DATA SCIENCE INTRO TO PROGRAMMING INTRO TO HTML & CSS BASH RUST

Basic JavaScript

JS Tutorial JS Syntax JS Variables JS Operators JS If Conditions JS Loops JS Strings JS Numbers JS Functions JS Objects JS Scope JS Dates JS Temporal  New JS Arrays JS Sets JS Maps JS Iterations JS Math JS RegExp JS Destructuring JS Data Types JS Errors JS Debugging JS Conventions JS References JS 2026 JS Versions

JS HTML

JS HTML DOM JS Events JS Projects New

JS Advanced

JS Functions JS Objects JS Classes JS Asynchronous JS Modules JS Meta & Proxy JS Typed Arrays JS DOM Navigation JS Windows JS Web APIs JS AJAX JS JSON JS jQuery JS Graphics JS Examples JS Reference


JavaScript Temporal Now

The Temporal.Now Object

The Temporal.Now object provides 5 methods to get the current date and time.

One method for each date object:

  • Temporal.Now.instant()
  • Temporal.Now.plainDateISO()
  • Temporal.Now.plainTimeISO()
  • Temporal.Now.plainDateTimeISO()
  • Temporal.Now.zonedDateTimeISO()

What is Temporal.Now?

Temporal.now is a Namespace object. Like the Math object, Temporal.Now is a container for methods.

These methods provide the current time in various formats (Instant, ZonedDateTime, PlainDateTime, etc) in nanoseconds precision .

Temporal.Now is static. It cannot be instantiated. You cannot use the new keyword to create a Temporal-Now. new Temporal.Now() will throw an error.

Instead, you call the methods directly on the namespace, such as Temporal.Now.instant().

Note

Temporal.Now is serving as a replacement for the older Date.now() method.


Create a Temporal.Instant Object

The Temporal.Now.instant() method returns a Temporal.Instant object representing the current date and time.

An Instant represents an exact moment in time (UTC). It is similar to a timestamp.

Example

Get the current system time:

let now = Temporal.Now.instant();
Try it Yourself »

Create a Temporal.PlainDate Object

Use the Temporal.Now.plainDateISO() method for calender date only:

It returns a Temporal.PlainDate object with the current date in the ISO calendar.

Example

Get the current system date:

let today = Temporal.Now.plainDateISO();
Try it Yourself »

Create a Temporal.PlainTime Object

Use the Temporal.Now.plainTimeISO() method for time only:

It returns a Temporal.PlainTime object with the current time in the ISO calendar.

Example

Get the current system time:

let today = Temporal.Now.plainTimeISO();
Try it Yourself »

Create a Temporal.PlainDateTime Object

Use the plainDateTimeISO() method to get the current date and time without a time zone.

It returns a Temporal.plainDateTime object with the current date and time without a time zone.

This is useful when you only need local date and time.

Example

Get the current system time:

let dateTime = Temporal.Now.plainDateTimeISO();
Try it Yourself »



Note

The JavaScript Date object has 1 method for getting the current time.

Temporal.Now has 5 methods for 5 different date objects.


Create a Temporal.ZonedDateTime Object

Use the zonedDateTimeISO() method when you need date and time zone information.

It returns a Temporal.ZonedDateTime object that includes your system's time zone.

Example

Get the current system time:

let zoned = Temporal.Now.zonedDateTimeISO();
Try it Yourself »

Temporal.Now Methods

Revised March 2026

MethodDescription
instant() Returns current time as a Temporal.Instant object
plainDateISO() Returns current date as a Temporal.PlainDate object
plainDateTimeISO() Returns current date and time as a Temporal.PlainDateTime object
plainTimeISO() Returns current time as a Temporal.PlainTime object
timeZoneId Returns system's time zone as a time zone id
zonedDateTimeISO() Returns current date and time as a Temporal.ZonedDateTime object


×

Contact Sales

If you want to use W3Schools services as an educational institution, team or enterprise, send us an e-mail:
sales@w3schools.com

Report Error

If you want to report an error, or if you want to make a suggestion, send us an e-mail:
help@w3schools.com

W3Schools is optimized for learning and training. Examples might be simplified to improve reading and learning. Tutorials, references, and examples are constantly reviewed to avoid errors, but we cannot warrant full correctness of all content. While using W3Schools, you agree to have read and accepted our terms of use, cookies and privacy policy.

Copyright 1999-2026 by Refsnes Data. All Rights Reserved. W3Schools is Powered by W3.CSS.

-->