Hacker News new | ask | show | jobs
by fouc 1123 days ago
irb(main):008:0> Date.parse("05.10.2023") => #<Date: 2023-10-05 ((2460223j,0s,0n),+0s,2299161j)>

Should be for October 5, according to that format.

1 comments

Yeah, if you insist on using your weird American date format, use "May 10th, 2023" or at least "05/10/2023" to make it less ambiguous, using dots implies DD.MM.YYYY the same way as using dashes implies YYYY-MM-DD...
> use "May 10th, 2023" or at least "05/10/2023" to make it less ambiguous, using dots implies DD.MM.YYYY the same way as using dashes implies YYYY-MM-DD...

For most of the world, using slashes also implies DD/MM/YYYY. For instance, I would write today's date as 17/05/2023.

The good news is on a dozen days during the year the US and the ROW are on the same page (MM/MM/YYYY or DD/DD/YYYY if you prefer).

Somebody should check if those days are generally associated with fewer accidents, higher stock returns and a pronounced sense of global peace and harmony