• itisileclerk@lemmy.world
    link
    fedilink
    arrow-up
    1
    ·
    6 days ago

    Actually, the date and time format is: yyyy-MM-dd-HH-mm. Always 12 characters, can be sorted as text or long (if the - is removed).

    • ano_ba_to@sopuli.xyz
      link
      fedilink
      arrow-up
      3
      ·
      6 days ago

      As long as it’s easy to manipulate at the back end. IBM DB2 date/time format uses 25 characters, and includes 6 decimal places for the seconds.

      • pfwood178@sh.itjust.works
        link
        fedilink
        arrow-up
        1
        ·
        6 days ago

        Or the DB2 date (only) format which is 7 characters: CYYMMDD
        C = 1 if year is greater than 1999 as a “fix” for Y2K problems. 1250902 is today’s date. 250902 was exactly 100 years ago.