Hacker News new | past | comments | ask | show | jobs | submit login

Formatting is fine. Take a look at `Intl.DateTimeFormat`[1]. Then there is a proposal for `Temporal`[2] which will make handling a lot easier.

[1]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...

[2]: https://github.com/tc39/proposal-temporal




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

Search: