4

The age-old question between `DD/MM/YYYY` or `MM/DD/YYYY`.

After some shower thoughts, my new preference is `YYYY/MM/DD` for Americans and Lithuanians (only 2 that I know) it just looks like the year has been placed first, otherwise, they read it as normal. To everyone else, the date is reversed and therefore will be read in reverse leading to the same answer.

In addition, `YYYY/MM/DD/some-dated-file` as a file path works exceptionally well for storing files as it uses the least amount of repetition.

Comments
  • 15
    YYYY-MM-DD aka the ISO format also allows to do date ordering via simple string sorting e.g. in filenames.
  • 2
    why would u use full dates for files when Unix timestamp works better

    for user readibility, convert it to a Datetime and let them choose their preffered format on demand
  • 0
    @azuredivay I have a bunch of video files that I organise based on date, that's where I was going with the last point.
  • 0
    DD MMM or something similar in plain text for readability, YYYYMMDD for names of files and folders.
  • 1
    @azuredivay A full date is more readable than a UNIX timestamp. The timestamp might work better for when you need precision down to the second, but then again you can append hours, minutes and seconds to YYYY-MM-DD and have both the precision and readability.
  • 4
    any answer to this question that does not boil down to "USE! GODDAMN! ISO!" is a sign of mental deficiency.
  • 4
    Placing the day in the middle is without a question, plain retarded.
  • 2
    @azuredivay because it's fucked after 2038 + is human readable
  • 3
    @MammaNeedHummus time_t is 64 bits these days and also solved in filesystems such as ext4, though the way they implemented it in ext4 pushes the issue out "only" by a few centuries.

    That leaves old 32 bit machines and old filesystems like ext2/ext3.
  • 0
    A lot of you guys need to relax and take a chill pill
  • 4
    RFC 3339 solves a lot of Interpretation issues with ISO.

    So take RFC 3339 aka "the better ISO 8601".

    https://ijmacd.github.io/rfc3339-is...

    Thanks to whomever did this for explanation.
  • 2
    Placing day in the middle makes no sense, and confuses the hell out of us in Europe
Add Comment