I’m going to come right out an admit something terribly nerdy: I have a favorite standard. It’s ISO 8601. My having a favorite standard probably doesn’t surprise you, as I am a person who writes a blog on data management for fun. Why wouldn’t I have a favorite standard? But my having a favorite standard isn’t something for me alone (though I do use the standard often), it’s because ISO 8601 is incredibly useful for data management. Therefore, I want to make my favorite standard your favorite standard too.
The standard ISO 8601 concerns dates, a common type of information used for data and documentation. To understand why this standard is important, consider the following dates:
- March 5, 2014
- 2014-03-05
- 3/5/14
- 05/03/2014
- 5 Mar 2014
All of these represent the same date but are expressed in different formats. The problem is that if I use all of these formats in my notes, how will I ever find everything that happened on March 5th? It’s simply too much work to search for all the possible variations. The answer to this problem is ISO 8601.
ISO dictates that all dates should use the format “YYYYMMDD” or “YYYY-MM-DD”. So the example above becomes “20140305” or “2014-03-05”. This provides you with a consistent format for all of your dates. Such consistency allows you to more easily find and organize your data, the hallmark of good data management.
ISO 8601’s consistency is nice in and of itself, but here’s where things get really awesome: when you use ISO 8601 dates at the beginning of file names. This is because dates using this standard sort chronologically by year, by month, and then by date. So if you date all of your file names using ISO 8601, you suddenly have a super easy way to find and sort through information.
Let me give you an example to show you how wonderful this is. I recently cleaned up over 10 years of files for a committee that I am currently on. The committee’s membership changes each calendar year and it was hard to find specific files from previous committees. My solution was to make all the file names start with a date. This makes everything super easy to find and I can now simply ignore content from years I don’t need.
The other great thing about using the “YYYY-MM-DD” format is that you can mix and match how specific your dates are. For example, all of my presentation files live in folders labeled by date. One-off presentations are given an exact date, eg. “2014-04-30_DataManagementWebinar”, while presentations that I give multiple times are only given a year, eg. “2013_CreatingADMP”. I also have files that end up with just a year and a month, eg. “2012-09_Website”. No matter the specificity of the date, all of these files sort chronologically. It’s a beautiful thing.
I highly recommend using ISO 8601 as the way you write dates in your research. It’s a trivially small change, but can have a huge impact in terms of how easy it is to find and use your content. That is data management at its very best.
If you like ISO8601, you probably like the almost-standard EDTF that extends ISO8601 with specified uncertainty etc.
If only my photo collection tools and Windows Explorer and Mac Finder would support it, then I could sort my photo sets that I took with my first digital camera and whose dates have been lost…
Pingback: New Federal Grants Guidance and How It Effects Data » Data Ab Initio
Pingback: Version Control for Evolving Files » Data Ab Initio
Liked you article!
Which format do you recommend, “YYYYMMDD” or “YYYY-MM-DD”? I am starting naming photos to be used in websites. I find using YYYYMMDD-names easier than YYYY-MM-DD-names. Any harm in using date without dashes?
A fast reply will be very much appreciated.
Thank you!
Both are valid under ISO8601. I prefer YYYY-MM-DD because I find it’s easier to read. I would use YYYYMMDD if you’re crunched for space (for example in a long file name). It’s your choice – just be consistent!
Thank you.
I have seen many people asking how to change my file names from YYYYMMDD to YYYY-MM-DD. That is why I asked if I will be in a situation when I will need to change the date format. I have been using YYYYMMDD in past and like it this way. Now starting a new project for a new client so wanted to confirm what way is better.
I appreciate your reply. Thank you very much!!!
FYI, if you need to go back and change old file names from one date format to the other, I would try either Bulk Rename Utility or Renamer.
Many Many thanks, Kristin.