551 points

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

permalink
report
reply
89 points

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

permalink
report
parent
reply
55 points

Largest to smallest unit of time. It just makes sense.

permalink
report
parent
reply
49 points

Sorting by date would be so much better with yyyymmdd .

permalink
report
parent
reply
37 points

ISO 8601, while great, has too many formats. May I introduce RFC 3339 instead?

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

permalink
report
parent
reply
6 points

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…

permalink
report
parent
reply
6 points

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

permalink
report
parent
reply
3 points
4 points
*

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.

permalink
report
parent
reply
25 points

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.

permalink
report
parent
reply
20 points
*

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.

permalink
report
parent
reply
9 points

Holy shit teach me your ways how do I do that

permalink
report
parent
reply
2 points

Much date. Very logic.

permalink
report
parent
reply
23 points
*

Glad I can count my own country, Lithuania, among the enlightened.

EDIT: Source of the picture: https://en.m.wikipedia.org/wiki/File:Date_format_by_country_NEW.svg

permalink
report
parent
reply
13 points

Which color is which?

permalink
report
parent
reply
5 points

(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.

permalink
report
parent
reply
6 points

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

permalink
report
parent
reply
5 points

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.

permalink
report
parent
reply
-9 points
*

where’s that? somewhere in africa?

/s because apparently it’s not implied

permalink
report
parent
reply
9 points

Are you from the US? This is a legit question…

permalink
report
parent
reply
8 points
*

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.

permalink
report
parent
reply
17 points

YYYY-MM-DD:HH:MM:SS

permalink
report
parent
reply
21 points

Funny thing, in ISO 8601 date isn’t separated by colon. The format is β€œYYYY-MM-DDTHH:MM:SS+hh:mm”. Date is separated by β€œ-”, time is separated by β€œ:”, date and time are separated by β€œT” (which is the bit that a lot of people miss). Time zone indicator can also be just β€œZ” for UTC. Many of these can be omitted if dealing with lesser precision (e.g. HH:MM is a valid timestamp, YYYY-MM is a valid datestamp if referring to just a month). (OK so apparently if you really want to split hairs, timestamps are supposed to be THH:MM etc. Now that’s a thing I’ve never seen anyone use.) Separators can also be omitted though that’s apparently not recommended if quick human legibility is of concern. There’s also YYYY-Wxx for week numbers.

permalink
report
parent
reply
15 points

YYYY-MM-DD:HH:MM:SS+TZ

permalink
report
parent
reply
8 points

RFC3339! It’s like ISO8601, but good!

permalink
report
parent
reply
12 points

YYYY-MM-DDTHH:MM:SS.SSSSSSSSSZ

permalink
report
parent
reply
3 points
*

I love the nanosecond format! I was playing with the date command earlier and came across this.

permalink
report
parent
reply
5 points

This, but all run together.

I write files/reports to disk a lot from scripts, so that’s my preferred format.

permalink
report
parent
reply
2 points

I just go for a unix timestamp and use terminal/filemanager to sort by or display the datetime

permalink
report
parent
reply
9 points

For file names, absolutely.
When I’m asking what date it is I typically know the current year.

permalink
report
parent
reply
4 points

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

permalink
report
parent
reply
1 point

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

permalink
report
parent
reply
9 points

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

permalink
report
parent
reply
16 points

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

permalink
report
parent
reply
1 point

Yeah and if you need to know what year, you can just add it to the end like this MM-DD-YY.

permalink
report
parent
reply
3 points

Is that why the military uses that format?

permalink
report
parent
reply
5 points

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

permalink
report
parent
reply
-13 points

No. No you can’t.

permalink
report
parent
reply
4 points

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

permalink
report
parent
reply
3 points
*

In many of them but not all, because it’s become convention and has been enshrined in their documentation policies. cGMP just requires that your quality management system has a policy in place that specifies how to document the date, and when exceptions are allowed (for instance, data printouts where YYYY-MM-DD is often the default).

It’s also the reason some labs require you to initial/date every page of printed data, and some only require you to initial/date the first and/or last page. I’ve seen FDA auditors be okay with both, as long as you can justify it with something like: our documentation policy defines the printout as a copy of the original data, and the original data as what’s stored on machine memory with electronic signature; versus: our documentation policy defines the original signed/dated data printout as the original data. In any case, it still has to follow 21 CFR part 11 requirements for electronic records & signatures, where the only date predicate rule example they give is 58.130(e), which itself is broad and only applies to non-clinical lab studies. It’s notable that the date format 21 CFR 11 itself uses is actually Month D, YYYY, with no zero padding on the day.

And if you don’t have IQ/OQ/PQ documentation showing how you locked down and validated the software’s ability to maintain an audit trail you can’t even use electronic records (or signatures).

permalink
report
parent
reply
2 points

It’s alphabetically sortable too. Name backups like this.

permalink
report
parent
reply
2 points

The truth. Amen

permalink
report
parent
reply
109 points

DD/MM/YY and YY/MM/DD are the only acceptable ones IMO. Throwing a DD in between YY and MM is just weird since days move by faster so they should be at one of the ends and since YY moves the slowest it should be on the other end.

permalink
report
reply
36 points

I’m not kidding when I ask: are there really a lot of people using MM/DD/YYYY??

permalink
report
parent
reply
109 points

Almost 350 million of us morons down south of you.

permalink
report
parent
reply
4 points

🀣

permalink
report
parent
reply
-31 points

Using a different date format that means the exact same thing anyway does not make you a moron.

permalink
report
parent
reply
31 points

I think most Americans do. Or at least it was taught that way in school when I was growing up. Maybe it’s because of the way we speak dates, like β€œOctober 23rd” or β€œMay 9th, 2005”.

Regardless, the only true way to write dates is YYYY-MM-DD.

permalink
report
parent
reply
1 point

Thanks!

permalink
report
parent
reply
17 points

Pretty much every American I’ve ever met. Dates on drivers license, bank info, etc - all in MM/DD/YYYY … or even just MM/DD/YY

I regularly confuse people with YYYY-MM-DD

permalink
report
parent
reply
6 points

If you use DD/MM/YYYY, dumb sorting algorithms will put all of the 1sts of every month together, all of the 2nds of every month together, etc. That doesn’t seem very useful unless you’re trying to identify monthly trends, which is fundamentally flawed as things like the number of days in the month or which day of the week a date falls on can significantly disrupt those trends.

With MM/DD/YY, the only issue is multiple years being grouped together. Which may be what you want, especially if the dates are indicating cumulative totals. Depending on the data structure, years are often sorted out separately anyways.

YYYY/MM/DD is definitely the best for sorting. However, the year is often the least important piece in data analysis. Because often the dataset is looking at either β€œthis year” or β€œthe last 12 months”. So the user’s eyes need to just ignore the first 5 characters, which is not very efficient.

If you’re using a tool that knows days vs months vs years that can help, but you can run into compatibility issues when trying to move things around.

The ugly truth no one wants to admit on these conversations is that these formats are tools. Some are better suited to certain jobs than others.

permalink
report
parent
reply
3 points

I hope you mean YYYY, not just YY

permalink
report
parent
reply
3 points

Should just burn it all down and do. MM/YY/DD

permalink
report
parent
reply
1 point

Japan is YYYY-MM-DD, but when we talk about dates where a year is unneeded, we just cut it off which leaves it in the US standard format of MM-DD, much to the annoyance of non-US foreigners living here.

permalink
report
parent
reply
-1 points

The only reason they place month as first is because it is fits how dates are read in English, but that’s not a good reason to keep that format.

permalink
report
parent
reply
8 points

You only think it fits with how it’s read in English because that’s how you grew up saying it so it sounds natural to you. Your experience is not universal, and is in fact, a minority.

permalink
report
parent
reply
7 points
*

It’s how it is read in English (simplified) aka american english. Brittish english doesn’t do this nonsense, the talk in the correct format (first of january etc.).

(I’m sorry if i made some mistakes, english is my second language)

permalink
report
parent
reply
-3 points

I grew up with DD.MM.YYYY. But I think, MM/DD makes sense in everyday usage. You don’t often need to specify dates with year accuracy. β€œJane’s prom is on 7th September” – it’s obvious which year is meant. Then it’s sensible to start with the larger unit, MM, instead of DD.

Even in writing you see that the year is always given like an afterthought: β€œ7th September**,** 2023β€œ.

permalink
report
parent
reply
3 points

So when you say it out loud you say 7th September, and not September 7th?

permalink
report
parent
reply
13 points

I say β€œThe 7th of September” because I was taught British English in school.

permalink
report
parent
reply
105 points

ISO 8601 format is the best (YYYY-MM-DD).

permalink
report
reply
23 points

Came here to say this. I try to name all my docs in the YYYY-MM-DD-descriptive-name.ext format.

permalink
report
parent
reply
2 points
*

I can see some advantages of that.

I’m American though, so YYYY-DD-MM is the best I can do.

permalink
report
parent
reply
3 points

for me, the section that changes the most goes last…

in a whole year, the YYYY never changes, the MM changes only 12 times… i never implementing the day… there’s only so many possibilities i could have had for saved files in June. i just go straight to description

permalink
report
parent
reply
13 points

I like that for files, but not for written documents. When I label things I try to use the most intuitive/least confusing way I can think of: DD mmm YYYY. This comment is posted on 23 NOV 2023, for example.

permalink
report
parent
reply
5 points

I do prefer the abbreviated month with the yyyy mmm dd format. It makes things relatively easy to sort but you also don’t have to worry about confusing others if you are referring to the 10th month or day for example.

permalink
report
parent
reply
9 points

The only correct format. Least to most specific.

permalink
report
parent
reply
4 points

Used to be my account name on a different website social media aggregator.

permalink
report
parent
reply
3 points

For Excel 100%

permalink
report
parent
reply
2 points
*

Best nomenclature for sorting.

permalink
report
parent
reply
100 points

YYYY-MM-DD (honestly without dashes) is the only helpful format.

If you name all your files with this as a suffix then your files automatically sort versions of themselves in order when sorting by name.

permalink
report
reply
31 points

ISO 8601 baby

Though it ought to be a prefix, not a suffix

permalink
report
parent
reply
25 points

You mean as a prefix, right?

permalink
report
parent
reply
12 points

Their assumption is that the filename is the same otherwise e.g. myNotes20231122.txt

permalink
report
parent
reply
8 points

Oh I see, thanks. Good alternative to final3_release2.

permalink
report
parent
reply
15 points

Came here to say this, I use DD.MM.YY in day-to-day stuff, but for files it’s either YYYY_MM_DD or YY_MM_DD, the automatic ordering is beautiful

permalink
report
parent
reply
9 points

Yeah this method is superior for digital filing. I can’t imagine the sorting clusters I’d have to go through to find what I want any other way

permalink
report
parent
reply
75 points

permalink
report
reply

Memes

!memes@lemmy.ml

Create post

Rules:

  1. Be civil and nice.
  2. Try not to excessively repost, as a rule of thumb, wait at least 2 months to do it if you have to.

Community stats

  • 13K

    Monthly active users

  • 12K

    Posts

  • 270K

    Comments