Relative Date Formatting in JavaScript

Did you know those behemothic JavaScript date libraries are basically obsolete?
A few weeks ago I learnt how to use the Internationalization API for natural alphanumeric sorting. This week I’ve been using the DateTimeFormat and RelativeTimeFormat APIs….

Did you know those behemothic JavaScript date libraries are basically obsolete?
A few weeks ago I learnt how to use the Internationalization API for natural alphanumeric sorting. This week I’ve been using the DateTimeFormat and RelativeTimeFormat APIs. Like all native APIs they’re a little verbose and unintuitive, but also extremely powerful. Browser support has caught up […]


Print Share Comment Cite Upload Translate
APA
David Bushell | Sciencx (2024-04-20T15:46:54+00:00) » Relative Date Formatting in JavaScript. Retrieved from https://www.scien.cx/2021/06/08/relative-date-formatting-in-javascript/.
MLA
" » Relative Date Formatting in JavaScript." David Bushell | Sciencx - Tuesday June 8, 2021, https://www.scien.cx/2021/06/08/relative-date-formatting-in-javascript/
HARVARD
David Bushell | Sciencx Tuesday June 8, 2021 » Relative Date Formatting in JavaScript., viewed 2024-04-20T15:46:54+00:00,<https://www.scien.cx/2021/06/08/relative-date-formatting-in-javascript/>
VANCOUVER
David Bushell | Sciencx - » Relative Date Formatting in JavaScript. [Internet]. [Accessed 2024-04-20T15:46:54+00:00]. Available from: https://www.scien.cx/2021/06/08/relative-date-formatting-in-javascript/
CHICAGO
" » Relative Date Formatting in JavaScript." David Bushell | Sciencx - Accessed 2024-04-20T15:46:54+00:00. https://www.scien.cx/2021/06/08/relative-date-formatting-in-javascript/
IEEE
" » Relative Date Formatting in JavaScript." David Bushell | Sciencx [Online]. Available: https://www.scien.cx/2021/06/08/relative-date-formatting-in-javascript/. [Accessed: 2024-04-20T15:46:54+00:00]
rf:citation
» Relative Date Formatting in JavaScript | David Bushell | Sciencx | https://www.scien.cx/2021/06/08/relative-date-formatting-in-javascript/ | 2024-04-20T15:46:54+00:00
https://github.com/addpipe/simple-recorderjs-demo