Featured Posts

What Those on the Right Seem to be Ignoring Later today, more details about the torture the US did on detainees will be released. Those on the right are upset. They think that if the world knows what we did in detail it will threaten our national...

Readmore

Using GeoBeagle I made my first Wiki entry/edit today over at Cacheopedia. I made an entry on how to use GeoBeagle. Hopefully others will come along and help fill in what I left out.

Readmore

Obama Attacks Bush While Announcing a Bush Like Program,... In a case of the pot calling the kettle black, Obama, standing in front of the Constitution of the United States, rightfully attacked Bush for his policies regrading detainees. Bush and Cheney and all...

Readmore

  • Prev
  • Next

Date Format

Posted on : 02-01-2006 | By : Brian A. Thomas | In : General, Programming, Site News

0

With the new theme, the date is a bit odder looking, but is the same way it has been. It is in the international format, so the date is first, then the month, then the year (DD-MM-YYYY). This format is also known as “little endian“, compared to the “middle endian” format normally used in the United States for whatever reasons.
I am tempted to switch to ISO 8601 standards, which is YYYY-MM-DD (big endian). It has the advantage of being an ISO standard, but isn’t really used much outside the scientific and technical communities and Asia. Then again that perhaps most of those are reason enough.
Wikipedia covers date formats fairly well.
All the date formats raises a question when programming. With everyone using different formats, how can you be sure that somebody is inputing the correct format? Error trapping such entries would be hard I would think. If you are pulling data from a database that you didn’t program, and are not clear on the date format it used, things get confusing. If they used a four digit year, you can at least figure out what part of the date is the year, but figuring the month and date may be harder. The only thing I could figure is to scan all the dates, if you see an area that goes past 12, then that is probably the date, unless it goes past 31, where it probably is a two digit year. The size of that section of error trapping code would be nightmarish. Of course that assumes a Gregorian calendar, not Julian or some lunar based colander where things get even harder. Heck even ISO 8601 seems to allow for Julian type dates…
Why different formats evolved I don’t know. I would guess that when the United States was forming, England was using the middle endian format, since Wikipedia says England switched back to little endian around 1900 they may have been using middle endian themselves then. Personally, I think little endian makes the most sense, even if it is different then what we are used to seeing here in the States.

Share and Enjoy:
  • del.icio.us
  • digg
  • YahooMyWeb
  • Facebook
  • MySpace
  • TwitThis
  • E-mail this story to a friend!
  • Google
  • Live
  • Technorati
  • Yahoo! Buzz

Write a comment

Advertise Here