• lad@programming.dev
      link
      fedilink
      arrow-up
      4
      ·
      10 months ago

      Yes, and it is used only with dashes instead of slashes. This is also how date is written when you want alphabetical sorting to work on the date, too

    • Crimsonknee@lemmy.world
      link
      fedilink
      arrow-up
      1
      ·
      10 months ago

      Not necessarily. Size of time unit doesn’t explicitly mean largest to smallest. For human comprehension day first makes sense because that’s the most significant piece of data usually. Likewise for time of day the hour is the most significant piece of data.

      Though for computer comprehension, absolutely yyyy/mm/dd is best hands down.