User Experience Stack Exchange is a question and answer site for user experience researchers and experts. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

This question already has an answer here:

I'm creating a form with both date and time fields. To help the user I'm using a placeholder value to demonstrate how the the respective formats should look like, but I'm not at all sure on what formats to settle.

What date and time format do most people in both continents compound understand/renders less validation errors?

For time I need Hours and Minutes. For date I need Year, Month, Day.

share|improve this question

migrated from Jul 6 '13 at 14:52

This question came from our site for professional and enthusiast programmers.

marked as duplicate by JonW Jul 6 '13 at 15:36

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

up vote 2 down vote accepted

This is a great question. Localization is the best answer, but it's useful to know what is used by whom:

Super informative! Roughly 65% of the planet uses DMY, 30% uses YMD, and the rest are slightly bonkers. Personally, I find YMD the most intelligent. It sorts correctly, and is cognitively efficient. ('Y-m-d' is also MySQL's default DATE format).

share|improve this answer

You should do it in a Locale-dependent way. This can be archived either by asking a user directly (some settings in user profile) or in an authomated way:

  • You may try to recongnize user's country and locale by IP range
  • User-selected language may give you a hint
  • Timezone may also be taken into account (you can get one via JS), but it's quite insufficient as a sole criteria

Having locale information you may render date and time templates properly for each user.

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.