Friday, May 07, 2010

Date - sortable

This is to all the people who include a date in a file name or document name (and there are good reasons for doing so... simple way of versioning).

Is this really so hard to format a date so that it is sortable?

That would be year first, then month, then day (of month) - just like ISO 8601 says it should be. year-month-day or year/month/day ... whichever separator you prefer...[1]
And please - numeric only.

So please, do not include a name of the month, because then April appears before February. And the sort order would be locale/language dependent. Not a good idea.

So no "Apr-27th" in a file name please (I've seen that).
Just make it "2010-04-27".

That's sortable. Everywhere.

Come to think of it: in that regard the rather awkward American way of writing a day (month/day) does make sense all of a sudden... still month/day/year is totally pointless.

Thanks for listening.

You can go back to what you were doing.

--
[1] but stick to it. No point in using - in one file name and / in the other.

No comments: