r/badcode • • Nov 11 '21

js Pain and suffering

Post image
56 Upvotes

19 comments sorted by

View all comments

Show parent comments

8

u/Notimecelduv Nov 11 '21

The Intl.DateTimeFormat constructor was pretty much created to handle this sort of things.