One date format to rule them all

| | Comments (2)

A number of years ago I switched from using the mm/dd/YY date format to YYYYMMDD format—if you can't figure that second one out, it would result in today being rendered as 20080323. It's the most internally consistent date format I can find, it's rarely ambiguous, and it doesn't rely on messy punctuation, which often breaks things like filenames. Plus, it's easy to extend into a full datetime: 20080323:2104.

The downside is that most folks stack overflow when they see an 8-digit date.

Is there any alternative representation that gets around the messiness I described above? What do you use?

P.S. Submitting a comment will almost assuredly result in an HTTP 500 error but I've submitted a bunch of form entries since the errors cropped up and despite the error, every request has gone through successfully.

2 Comments

I always use "YYYY-MM-DD". The hyphens work in all modern filesystems and also make it understandable to people not used to useful date formats.

I always use "YYYY-MM-DD". The hyphens work in all modern filesystems and also make it understandable to people not used to useful date formats.

Leave a comment

Pages

Powered by Movable Type 4.25

February 2010

Sun Mon Tue Wed Thu Fri Sat
  1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28            

About this Entry

This page contains a single entry by milkman published on March 23, 2008 8:00 PM.

Teh Engrish was the previous entry in this blog.

500 broken is the next entry in this blog.

Find recent content on the main index or look in the archives to find all content.