• lad@programming.dev
      link
      fedilink
      arrow-up
      4
      ·
      1 year 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
      ·
      1 year 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.