Remix.run Logo
TimK65 4 hours ago

So thankful that we use the correct date format (yyyy-mm-dd) in Sweden.

My_Name 4 hours ago | parent | next [-]

Can I just say that, as someone born and bred in the UK, YYYY-MM-DD is the only correct way to display a date wherever you live.

Anything else is as bad as using mm:hh...

Pooge 4 hours ago | parent [-]

> Anything else is as bad as using mm:hh...

Please tell me that's not a thing.

dhosek 3 hours ago | parent [-]

It is now.

ben_w 3 hours ago | parent [-]

In a moment of whimsy I briefly considered a date format where digits were sorted alphabetically.

2026-07-02-16-31-52 -> -----00011222235667

Hopefully it will remain a nonsense and never be seen in the wild, unlike the phone number field which I found on a real website which responded to scroll events to increase and decrease the value it contained.

card_zero 3 hours ago | parent | next [-]

Well that's just totally ambiguous. What you should do instead is treat the date as one long number and present its factors, for instance 2⁴⋅11⋅7649⋅15050023, much more practical.

rich_sasha 2 hours ago | parent | prev | next [-]

How about just sort the numbers from biggest to smallest?

2026-07-02 16:45 becomes

2026-45-16-06-02

Bonus points for using a very confusing separator... Maybe {?

debesyla 3 hours ago | parent | prev [-]

Wait, can this format be transformed back to the "normal" format? If so, then it could be kinda viable for some operations... :thinking_emoji:

jstanley 3 hours ago | parent | next [-]

No, it can't be transformed back because it has lost information.

2025-06 and 2026-05 both have the same digits, for example.

mkopinsky 2 hours ago | parent | prev | next [-]

No, it's an unreversible hash function. I use this for passwords - no one will ever be able to figure out what ehntru2 was originally.

ben_w 3 hours ago | parent | prev [-]

No, because "12".sort_by_digits() == "21".sort_by_digits()

marcellus23 3 hours ago | parent | prev | next [-]

as an American this is my favorite format. Sortable, and the mm-dd order reflects the standard American way of writing month+day, and yyyy is unambiguously the year since it's 4 letters. Best of both worlds.

WithinReason 4 hours ago | parent | prev | next [-]

That's also the ISO standard since it sorts correctly

rkangel 3 hours ago | parent [-]

I believe it's the ISO standard because it is obviously distinguishable from both the MM-DD-YY (US) date order and the DD-MM-YY (UK/EU/Others) date order and so is unambiguous.

https://www.iso.org/iso-8601-date-and-time-format.html

The fact that they are then sortable is a nice side benefit!

bmacho 3 hours ago | parent | prev | next [-]

Wrong decimal tho.

Why isn't there an en-EU or en-ISO locale that has:

  - yyyy-mm-dd
  - SI units
  - 1,234.56 number format
brnt an hour ago | parent [-]

The European Commission published its own language guide. In terms of English it's only a small deviation from en-GB, but my first thought was indeed: when can I set en-EU?

fmajid 4 hours ago | parent | prev | next [-]

I've taken to using the Swedish locale for that very reason (French-American living in the UK).

hk1337 3 hours ago | parent | prev [-]

The superior date format. Superior to all others.