News for hackers. Stuff that matters.
Re:Why are there so many Canadians in India? by rubatuga on Monday May 03, 2021 @01:28AM (#27021909)
en-CA has the best date format:

yyyy-MM-dd

Re:Why are there so many Canadians in India? by shagie on Monday May 03, 2021 @10:51AM (#27025778)
That's the official one from the all numeric date... but...

https://en.wikipedia.org/wiki/Date_and_time_notation_in_Cana...

All of the following dates are valid:

3 May 2021

May 3, 2021

3 mai 2021

2021-05-03

And from https://en.wikipedia.org/wiki/Date_format_by_country

> ISO 8601 is the only format that the Government of Canada and Standards Council of Canada officially recommend for all-numeric dates.[28][29][30] But, their usage differs depending of many contexts.[31][32]

> All three formats are used in Canada for long format.

> For English speakers, MDY was preferred form (mmm-dd-yyyy) (Example: April 9, 2019) and used by nearly all English language publications and media companies as well as majority of English language government documents.[citation needed]

> For both French and sometimes English speakers, DMY are used (dd-mmm-yyyy) (Example: 9 April 2019/le 9 avril 2019) and also used in formal letters, academic papers, military, many media companies and even some governmental documents, particularly in French-language ones.

> Federal regulations for shelf life dates on perishable goods mandate a year/month/day format, but allow the month to be written in full, in both official languages, or with a set of standardized two-letter bilingual codes such as 2019 JA 07 or 19 JA 07.

Re:Why are there so many Canadians in India? by rubatuga on Wednesday May 05, 2021 @02:11AM (#27046748)
Still, the one that contains only numbers (the most potentially ambiguous) is of the format yyyy-MM-dd
Re:Why are there so many Canadians in India? by ithkuil on Monday May 03, 2021 @02:18AM (#27022181)
Apparently it's not obvious to all why this is the best, so let's be explicit:

Dates in this format can be sorted lexicographically

Re:Why are there so many Canadians in India? by the_pwner224 on Monday May 03, 2021 @02:30AM (#27022248)
It's also unambiguous. Nobody uses yyyy-dd-mm, whereas xx/xx/yy can be misinterpreted.
Re:Why are there so many Canadians in India? by gmueckl on Monday May 03, 2021 @07:42AM (#27023839)
I distinctly remember SQL Server 2000 pulling that one on me. I had switched a DB app over to using ISO dates exclusively in its queries to avoid the month-day-ordering confusion and then the bloody thing earnestly started to parse yyyy-mm-dd dates as yyyy-dd-mm at every chance it got. So much for unambiguous date formats!
Re:Why are there so many Canadians in India? by skissane on Monday May 03, 2021 @07:25AM (#27023715)
Apparently, Kazakhstan uses yyyy-dd-mm, but only in Kazakh (not in Russian.)

I guess if we are only talking about English speakers, that’s not an issue, since if Kazakhs don’t write dates that way in Russian, I presume they wouldn’t do it that way in English either

Re:Why are there so many Canadians in India? by checkyoursudo on Monday May 03, 2021 @03:46AM (#27022606)
My (and every other) Swedish social security number uses this format plus 4 more digits. It ends up being the format I usually default to when writing a date. I feel like it is the least likely to be misconstrued, when I start with the full year. Would many people ever mistake it for yyyy-dd-mm?
Re:Why are there so many Canadians in India? by crossroadsguy on Monday May 03, 2021 @05:22AM (#27023069)
As an Indian who thinks of date as (in order) day → month → year for me dd-MM-yyyy is the standard.

But given a choice I'd prefer something like dd-MON-yyyy because there is such an incongruous mixture of dd-MM and MM-dd across Indian services that often you are not sure unless one of the numbers crosses 12.

Re:Why are there so many Canadians in India? by jefftk on Monday May 03, 2021 @11:28AM (#27026324)
A nice thing about yyyy-mm-dd, in addition to being the standard, is that since no one uses yyyy-dd-mm it's unambiguous
Re:Why are there so many Canadians in India? by bawolff on Monday May 03, 2021 @02:50AM (#27022337)
As a canadian, i'm pretty sure i've never seen anyone use that date format.
Re:Why are there so many Canadians in India? by slavik81 on Monday May 03, 2021 @10:25AM (#27025449)
If you do your taxes on paper, you'll have entered your date of birth in that way (upper right corner): https://www.canada.ca/content/dam/cra-arc/formspubs/pbg/5015...
Re:Why are there so many Canadians in India? by bawolff on Monday May 03, 2021 @11:46AM (#27026550)
Fair. Also i just realized that cheques also use that format.

Colloquially though i dont see that format very much.