JS protip #3: Date formatting according to locale customs
Published on 26 October 2022 • 7:54

Ha, the joys of formatting dates and times. Sure, we could use a single, digit-based format and call it a day. This might be enough (especially for tech formats), but it’s certainly not ideal, perhaps even way too ugly when we’re displaying these to humans, with their cultures and formatting customs: their locales.

After all, when an English-language website displays 08/12/2022, how can we be sure they mean August 12 or December 8? Without knowing what locale they went with, there’s no way to be certain.

Let’s review the options we have for doing this right without bloating our app’s JS.

Get all the details in our article: https://delicious-insights.com/en/posts/js-protip-date-formatting/

Want to gain further mastery of JS, Node, npm…? Check out our other video courses and training classes: 😁

Our video courses: https://screencasts.delicious-insights.com/en/
Our training classes: https://delicious-insights.com/en/trainings/
Our kickass services: https://delicious-insights.com/en/services/

Want to comment? Do it directly on YouTube!