JavaScript's Date constructor has fundamental flaws: zero-indexed months, inconsistent parsing, mutable objects representing immutable real-world dates, and poor timezone support. The new Temporal API solves these issues with immutable-style methods that return new objects instead of mutating existing ones, explicit timezone handling, intuitive syntax for date arithmetic, and built-in formatting. Temporal is now in stage 3 of standardization and available in Chrome and Firefox for experimentation.
17 Comments
Sort: