10

what it's like when someone doesnt use "mm/dd/yyyy" or "dd/mm/yyyy":

"I need a name for your reservation. It can either be base64 encoded or a sha3 hash"

"Yeah, I'm on my way, how many light years is it past 404th street?"

"Oh, cool, my birthday's coming up, too. How many eons away is it?"

Comments
  • 5
    Dates should be YYYY-MM-DD. You know, the only format that actually make sense and doesn't cause confusion.
  • 1
    @Irene I don't agree.

    Who writes times as seconds:minutes:hours? It's always the other way around.

    Another argument:

    What we're discussing here is date-to-text conversion. The way texts are sorted is "lexicographically". That means that the first characters are way more important than the last ones. Since ORDER BY day, month, year just doesn't make any sense, the year should be first, then month, then day.
  • 2
    @irene You clearly have never worked with dates in programming. mm/dd/yyyy or dd/mm/yyyy are impossible to sort and a complete mess when it comes to parsing.

    Furthermore, not everyone is using mm/dd/yyyy as their format. Some languages are using dd/mm/yyyy in spoken form and YYYY-MM-DD in written form (e.g. french).

    Your argument about "importance" is complete nonsense. This is the same kind of thinking that led us to the infamous Y2K bug and the reason we still have major issues with accents / umlauts in many areas of programming. The thinking that the world revolves around the US English formats.

    The goal is to have a format that you can understand immediately, without any confusion no matter your language or country, and that can be handled without any issues in programming.

    Having dates like 01/05/2018 doesn't tell you whether it's mm/dd or dd/mm and is impossible to sort.

    YYYY-MM-DD is the only format that checks about the boxes.
  • 2
    @irene Have you even read my reply at all? No matter if it's meant to be displayed to user or used internally in code, dd/mm/yyyy or mm/dd/yyyy is massively confusing. And who decided it should be dd/mm/yyyy? Most English speakers will say it's mm/dd/yyyy, while French speakers would choose dd/mm/yyyy.

    What I said is not insulting, it's a fact. You don't fully understand all the complexity of dealing with dates until you had to program something with them.

    YYYY-MM-DD is the best choice, no matter the situation or where it's used. It's internationally understood and there's no confusion.
  • 0
    @NGPixel name a few *major* countries that use it.
  • 3
    @calmyourtities France, Canada...

    What's your point? It doesn't change the fact that both dd/mm/yyyy and mm/dd/yyyy are confusing, and a complete mess in programming.
  • 2
    @calmyourtities China and Japan are also using the YYYY-MM-DD date format. That's a pretty large percentage of the world population right there.
  • 0
    @NGPixel ok? i have no idea what products youre selling there. this seems like a you problem.
  • 2
    @calmyourtities I was merely answering your question...
Add Comment