The Temporal API in JavaScript is set to replace the outdated Date object, which has been around for a long time. It's still in Stage 3 of the proposal but should hopefully land in browsers soon. In this Larabit, we'll take a look at some of its features, including multiple date formats, adding and subtracting dates, rounding, and formatting.
Temporal API PolyfillDate formatsAdding and subtracting dates
