Modern date/time API proposal addressing Date object shortcomings. Provides immutable objects and better timezone handling.
Solution Code
JavaScript
const date = Temporal.Now.plainDateISO();
console.log(date.toString());
Explanation
Supports calendar systems beyond Gregorian and precise time calculations.Guided Hints
Compare with Luxon/date-fns
Migration from legacy Date