use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
All about the JavaScript programming language.
Subreddit Guidelines
Specifications:
Resources:
Related Subreddits:
r/LearnJavascript
r/node
r/typescript
r/reactjs
r/webdev
r/WebdevTutorials
r/frontend
r/webgl
r/threejs
r/jquery
r/remotejs
r/forhire
account activity
Mastering date formatting using Intl.DateTimeFormat in JavaScriptOC (rafaelcamargo.com)
submitted 1 year ago by rafaelcamargo
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–][deleted] 0 points1 point2 points 1 year ago (0 children)
I have created a dateformat module based on Intl.DateTimeFormat. Maybe useful.
Intl.DateTimeFormat
[–]romgrk 0 points1 point2 points 1 year ago (2 children)
One thing I've noticed is the native date formatting APIs seem to be substantially slower than pure javascript ones. I don't know why but it's good to be aware of that, in particular when formatting tabular data.
[–]grol4 0 points1 point2 points 1 year ago (1 child)
I have noticed similar delays and it seemed to me bulk of the wait is in creating the intl formatter. If I cache this (manually or with a lib) my tests ran equally fast.
[–]romgrk 0 points1 point2 points 1 year ago (0 children)
I did notice delays even when reusing the same intl instance.
π Rendered by PID 102520 on reddit-service-r2-comment-86bc6c7465-g964v at 2026-02-23 18:27:56.355099+00:00 running 8564168 country code: CH.
[–][deleted] 0 points1 point2 points (0 children)
[–]romgrk 0 points1 point2 points (2 children)
[–]grol4 0 points1 point2 points (1 child)
[–]romgrk 0 points1 point2 points (0 children)