Thursday, January 24, 2013

Dating

Here's a helpful hint for those of you who create computer files with dates in the filenames: use the format YYMMDD for better sorting.

I've noticed that most people use the more conversational MMDDYYYY convention when they embed dates in file names. Thus unfortunately doesn't work well for sorting, because it makes the month the initial key against which Windows or Mac OS sorts. This unfortunately means your January 2013's will be in among your January 2012's and January 2011's, with the Februarys to follow. This is no good.

Thus, I would name this file "blog post 130124" and it would sort effectively with the rest of my work. Obviously the exception to this is if you're still including files from before 2000, in which case you can do the same thing and still use a four-digit year, i.e. 20130124. I can't say this has been a necessity for me yet, but who knows what you readers might have lurking on your machines.

1 comment:

Andrew said...

Nice- hadn't really thought about this but it's helpful.