• pelya
    link
    5731 year ago

    YYYY-MM-DD is the only acceptable date format, as commanded by ISO 8601.

    • clif
      link
      961 year ago

      “There shall be no other date formats before ISO8601. Remember this format and keep it as the system default”

      • @EnderMB
        link
        61 year ago

        YES! I wish more people knew about RFC 3339. While I’m all for ISO 1601, it’s a bit too loose in its requirements at times, and people often end up surprised that it’s just not the format they picked…

      • @sartalon
        link
        61 year ago

        That is what I love so much about standards: there are so many to choose from.

      • @[email protected]
        link
        fedilink
        English
        4
        edit-2
        1 year ago

        Huh, I’ve never noticed how much bloat was in ISO 8601. I think when most people refer to it, we’re specifically referring to the date (optionally with time) format that is shared with RFC 3339, namely 2023-11-22T20:00:18-05:00 (etc). And perhaps some fuzziness for what separates date and time.

    • @[email protected]
      link
      fedilink
      English
      241 year ago

      If you have years of files named similarly with the date, you will love the ISO standard and how it keeps things sorted and easy to read.

      • @Agent641
        link
        20
        edit-2
        1 year ago

        I have autohotkey configured to insert the current date in ISO 8601 format into my filenames on keyboard shortcut for just this reason. So organized. So pure.

          • @Agent641
            link
            8
            edit-2
            1 year ago

            Download Autohotkey, and create a new script. Paste these shortcuts into the script and restart the script:

            #NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.

            ; #Warn ; Enable warnings to assist with detecting common errors.

            SendMode Input ; Recommended for new scripts due to its superior speed and reliability.

            SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.

            :R*?:ddd::

            FormatTime, CurrentDateTime, yyyy-MM-dd

            SendInput %CurrentDateTime%

            return

            :R*?:dtt::

            FormatTime, CurrentDateTime, yyMMddHHmm

            SendInput %CurrentDateTime%

            Return

            Now, if you type ‘ddd’ on your keyboard, the current date will be typed out, eg ‘2023-11-23’.

            If you type ‘dtt’ tgen the datetime stamp will be typed out in YYMMDDhhmm format, eg 2311231012

            There are so many cool things you van do with AHK to make your work more productive. For example, rather tgan typing your email address a billion times, add the shortcut:

            ::add1::[email protected]

            And then you can type ‘add1’ and hit space, and your email address will be typed out in full. Of course, the string ‘add1’ can be whatever you want.

        • @mvirts
          link
          21 year ago

          Much date. Very logic.

        • @[email protected]
          link
          fedilink
          51 year ago

          (This doesn’t consider the separator) Cyan - DD/MM/YY Magenta - MM/DD/YY Yellow - YY/MM/DD The other ones are mixes of those two colors, so e.g. the US is MM/DD/YY and YY/MM/DD (apparently).

          Also just noticed I didn’t attribute this picture, I’ll edit my comment.

      • @stealth_cookies
        link
        61 year ago

        Canada threw up their hands and said, “Fuck it, I don’t care, use whatever date format you like.”

        • @[email protected]
          link
          fedilink
          English
          51 year ago

          We are ridiculously inconsistent in Canada. I’ve seen all 3 of the most popular formats here (2023-11-22, 11/22/2023, and 22/11/2023) in similarish amounts. Government forms seem to be increasingly using RFC 3339 dates, but even they aren’t entirely onboard.

      • @problematicPanther
        link
        -8
        edit-2
        1 year ago

        where’s that? somewhere in africa?

        /s because apparently it’s not implied

        • Iron Lynx
          link
          8
          edit-2
          1 year ago

          Lithuania is one of the Baltic States, conveniently squished between Russia & Belarus to the east and the sea to the west. Across that sea is Sweden. You’ll usually see three countries be the parts of this set. Lithuania is the southernmost of these three.

      • ASeriesOfPoorChoices
        link
        41 year ago

        Well la-tee-dah, look at mister not-shitfaced-every-day here, bragging like a big man

        • @[email protected]
          link
          fedilink
          11 year ago

          I can lie under the table, puking my guts out and still remember the year.
          You need more training, son.

    • @[email protected]
      link
      fedilink
      91 year ago

      Except the information is given least to most important, making verbal abbreviation difficult. Works great for file names though.

      • @[email protected]
        link
        fedilink
        English
        161 year ago

        There’s this really cool shorthand where you drop the year because it seldom changes. It’s called MM-DD

            • @[email protected]
              link
              fedilink
              11 year ago

              Had a coworker who used MMDDYY with no dashes. Unless you knew it was very hard to figure out, since it could also just be a number that happened to be 6 digits, too. At least YYYY-MM-DD looks like a date generally.

          • @[email protected]
            link
            fedilink
            4
            edit-2
            1 year ago

            “I can reuse this old function if I just monkey-patch this other class to work with it, no one will have any issues understanding what’s going on”

            Edit: Thought this was the programmerhumor community. For context: A monkey-patch is when you write code that changes the behaviour of some completely different code when it is running, thus making its inner workings completely incomprehensible to the poor programmer using or reading your code.

    • @Gregorech
      link
      31 year ago

      Is that why the military uses that format?

      • Scrubbles
        link
        fedilink
        English
        51 year ago

        Yep, you can easily sort it just because of the ordering. It’s a full standard

      • ODuffer
        link
        English
        41 year ago

        In a GMP laboratory it’s 22NOV2023 no ambiguity.

        • @seth
          link
          3
          edit-2
          1 year ago

          deleted by creator