DEV Community

loading...

Discussion on: Two string methods every JavaScript developer should know.

Collapse
juanmendes profile image
juanmendes

Why would you parse the date manually and then format it manually? Use Date.parse and toLocaleString stackoverflow.com/a/34015511/227299

-1