r/javascript • u/robertgambee • Mar 18 '26
`new Date()` considered harmful
https://futuresearch.ai/blog/javascript-thinks-everythings-a-date/
0
Upvotes
r/javascript • u/robertgambee • Mar 18 '26
View all comments
7
u/horizon_games Mar 18 '26
JS Date is a good example of JS and HTML as a whole - it's resilient and will try it's best with whatever you give it. That's a big part of why the web has lasted as long as it has, and why you can still render old pages from almost 4 decades ago.