Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Temporal[0] is coming which solves many many many issues with JS Date, 1-based months[1] included!

Can't wait for it to be stable and widely available, it's just too good.

> month values start at 1, which is different from legacy Date where months are represented by zero-based indices (0 to 11)

[0] https://tc39.es/proposal-temporal/docs/

[1] https://tc39.es/proposal-temporal/docs/plaindate.html#month



Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact