News for hackers. Stuff that matters.
Re:New Date("WTF") – How well do you know JavaScript's Date ... by croes on Saturday July 12, 2025 @05:39AM (#44540681)
Why?
Re:New Date("WTF") – How well do you know JavaScript's Date ... by samwho on Saturday July 12, 2025 @05:45AM (#44540710)
I discovered the 0/“0” disparity in work this week for the first time. Then I tried “1” and “2” and knew there was fun to be had. :)
Re:New Date("WTF") – How well do you know JavaScript's Date ... by croes on Saturday July 12, 2025 @11:35AM (#44542779)
But who came up with such a confusing „logic“?

„0“ and „1“ are for years, everything above are month.

Does the text parsing only work for English or other languages too?