Skip to main content

JS Intl API Examples - Dependency Free Formatting

In this video shows how he is using the JS Intl API to format dates, numbers and durations in his apps.


00:00 Intro
00:55 Intl.DateTimeFormat
02:16 Intl.NumberFormat
03:31 Intl.RelativeTimeFormat
05:23 where are these supported?
05:58 thanks!

View the Intl examples here: https://gist.github.com/w3cj/e9e39a1b1942c03a82ac9f252236341b

MDN Intl | https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl DateTimeFormat | https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DateTimeFormat NumberFormat | https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat RelativeTimeFormat | https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat Web Dev Simplified Blog - Relative Date Internationalization In JavaScript | https://blog.webdevsimplified.com/2020-07/relative-time-format/