DEV Community

loading...

Discussion on: Never use a number or currency formatting library again!

Collapse
fkhadra profile image
Fadi Khadra

Wish we had something similar for dates 🤣

Collapse
jordanfinners profile image
Jordan Finneran Author

It won't translate into other languages but this element from GitHub will help with common date display tasks
jordanfinners.dev/blogs/5-github-e...

Collapse
fkhadra profile image
Fadi Khadra

This is neat! 👌

Collapse
jordanfinners profile image
Jordan Finneran Author

I've just checked and there is also this developer.mozilla.org/en-US/docs/W...

Which would do this for dates! 😀

Collapse
christophheinemann profile image
ChristophHeinemann

.toLocaleDateString

Forem Open with the Forem app