Temporal - Better dates and times in the JavaScript language!

One day soon, we hope there won't be a strong need for date and time libraries in JavaScript at all. Instead, we will be able to use capabilities of the JavaScript language itself. Though some capabilities are here today with Date and Intl, we know from experience and data that there is significant room for improvement.

The effort to make better date and time APIs in the JavaScript language is being done via The ECMA TC39 Temporal Proposal. It is currently at Stage 2 of the TC39 process.

Temporal will be a new global object that acts as a top-level namespace (like Math). It exposes many separate types of objects including Temporal.Absolute, Temporal.DateTime, Temporal.Date, Temporal.Time, Temporal.TimeZone and several others. The Temporal Cookbook shows many "recipes" with examples of how these objects can be used in different scenarios.

You can try out Temporal today, via an experimental polyfill. Please give it a try, but don't use it in production (yet)!

Please provide feedback, and consider contributing to this effort - especially if you have experience using Moment or other date and time libraries!