Course lesson

Displaying Language Sensitive Dates With Javascript Intl API

When working in an application that will be used or consumed by users all over the world, is important to display the data in a way that makes sense for them.

Duration
3 min
Access
Free
Transcript
Retained from source evidence

When working in an application that will be used or consumed by users all over the world, is important to display the data in a way that makes sense for them.

Som data can be simple to change based on their language, like translating text, but what happens with other pieces of information?

Dates can be a complex subject. Manually formatting dates based on the language can be bug-prone. Lucky for us, Javascript exposes an API that handles this: Intl.DateTimeFormat