• @PM_Your_Nudes_Please
      link
      4810 months ago

      For file versioning, this is the way. So when you sort your files by name, your files sort chronologically.

      • @fidodo
        link
        English
        2110 months ago

        It’s also the most relevant information first. I don’t care about what day it is if I don’t know what month it’s in. If it’s an unambiguous context they can just be omitted.

      • @answersplease77
        link
        18
        edit-2
        10 months ago

        Not only that. Processing logs with DD/MM/YYYY in many systems will result in octal base error because of the leading 0 in dates such as 07 08 09, and don’t let me talk about how some languages read the back slash / … pukes in shell

        • Echo Dot
          link
          fedilink
          110 months ago

          You should be escaping all your strings first that would solve your / problem

    • pelya
      link
      16810 months ago

      YYYY-MM-DD OR DEATH

      • @robolemmy
        link
        English
        4010 months ago

        Easily proved to be the best: in every time travel story, the time traveler asks for the date. The unsuspecting drone always responds with DD or MM-DD, and the protagonist has to shout at them “NO! WHAT YEAR IS IT?”

        Always start with YYYY.

        I rest my case.

      • @phoneymouse
        link
        1210 months ago

        DD is day in year, I think dd is what you mean. Also, YYYY is week year, so better to use yyyy.

        yyyy-MM-dd

      • Justas🇱🇹
        link
        fedilink
        710 months ago

        YMD is primarily used in:

        China, Japan, South Korea, North Korea, Taiwan, Hungary, Mongolia, Lithuania, Bhutan, Sweden

        That is one weird country group.

        • pelya
          link
          1010 months ago

          China and Japan switched from their old calendar system, which was using the start of their current emperor inauguration as the first year, reset with each new emperor.

          So I guess it was easier to choose the only correct date format.

          • @[email protected]
            link
            fedilink
            210 months ago

            That just dictates what number the year starts at, not the order of writing down a date. They do traditionally go from general to specific though. When writing an address in China, you go Country - State - City - Street - Person (I forget where the postal code goes).

        • @uis
          link
          1
          edit-2
          10 months ago

          How the fuck did NK got here?

    • @JPJones
      link
      2010 months ago

      You’re god damn right

    • Resol van Lemmy
      link
      English
      610 months ago

      Today is 2024, January 24.

      It looks perfect. Although my only concern is if we should use the preposition “in” (since the year comes first: “in 2024”) or “on” (because we say “on January 24”).

    • Echo Dot
      link
      fedilink
      410 months ago

      It’s great when organizing something in a database. You can just do A to Z ordering and it works just fine.

      However visually it’s not very good because it puts the least important piece of information first and the most important piece of information last. I probably know the current year so it doesn’t need to be that prominent, and I’m fairly certain that it’s going to be sometime this millennium, so I don’t need the date to four digits.

      • @blackbirdbiryani
        link
        810 months ago

        It’s entirely depend on the time frame range of your data. If it’s wide it rapidly becomes useful to see the year first. In general I like to put ‘larger’ group variables in tables from left to right, helps in a similar way.

  • @[email protected]
    link
    fedilink
    4410 months ago

    Always write largest to smallest. That way it can be sorted easily starting with the year, then month, then day.

      • @uis
        link
        110 months ago

        Computer ponies say it too

    • @douglasg14b
      link
      710 months ago

      We should all just write it in ISO 8601

    • @PR3CiSiON
      link
      510 months ago

      Largest to smallest? So should I write December 02, 2024 as 2024/12/02? And then February 12, 2024 as 2024/12/02?

      /s

      • @PM_Your_Nudes_Please
        link
        210 months ago

        Unironically yes, because it makes it easy to sort by date.

        When you sort by name, the year will get sorted first, then the month, then the day. So it’ll sort like this:

        2021-05-19
        2021-07-23
        2023–06-20

        Notice that everything is sorted chronologically. But if you do MM-DD-YYYY then you get this instead:

        05-19-2021
        06-20-2023
        07-23-2021

        Notice that the 2023 date is between the two 2021 dates. This is even worse if you do DD-MM-YYYY, because now the first number is changing constantly. It may not be a problem with only three dates, but imagine a spreadsheet with 2000+ entries, or a folder with dozens of files archived by date, to allow for potential rollbacks, versioning, etc…

        There’s a reason ISO standards for timestamps list things big to small: YYYY-MM-DD hh:mm:ss in that specific order every time.

        • @Randelung
          link
          1410 months ago

          You misread. The second part sorts 12 before Feb because 12 > 02, making both dates identical.

    • @SuckMyWang
      link
      210 months ago

      What if I want to easily sort the day or month?

  • @[email protected]
    link
    fedilink
    2910 months ago

    I bet you write your time as ss:mm:hh you silly little guy, you small to large clown you. Break up with him babe, you can do better

    • Resol van Lemmy
      link
      English
      210 months ago

      The 32-bit computers will have no idea what to do once they reach 19 January 2038. They’ll have reached their integer limit by that point.

  • MuchPineapples
    link
    14
    edit-2
    10 months ago

    Back in the 2000’s it was way more confusing. The appointment is on 10/09/11, when the hell is that?

    • @ammonium
      link
      510 months ago

      11 am on the 10th of '09. Month, millennium, century and month are free to choose by the reader.

    • @uis
      link
      210 months ago

      Best date was 11.11.11

  • @cbarrick
    link
    English
    1410 months ago

    Let’s add more granularity, like hours and minutes:

    MM:HH DD/MM/YYYY

    wait…

    • @BreadstickNinja
      link
      English
      1310 months ago

      Little-endian number formats are the only way to go in the year 4202.

    • @BluesF
      link
      510 months ago

      Fuck you JD Edwards for making me think about leap years

  • @rsh
    link
    English
    410 months ago

    DD Mmm YY