Reply to post: Re: Dates

It's Pi day: Care to stuff a brand new Raspberry one in your wallet?

FelixReg

Re: Dates

The dashes fix an ambiguity problem. 12031102? Nov 2, 1203 or Dec 3, 1102 or March 12, 1102. It's very, very rare to find YYYY-DD-MM. So if you're interpreting human generated dates, the dashes pretty much force YYYY-MM-DD. And YYYY-M-D is easily interpreted as a bonus.

As others have noted, file names really, really want to be in numeric, YYYY-MM-DD order. Take note when you supply your users the file name when they download from you!

POST COMMENT House rules

Not a member of The Register? Create a new account here.

  • Enter your comment

  • Add an icon

Anonymous cowards cannot choose their icon

Biting the hand that feeds IT © 1998–2019