For instance, these are all acceptable in a MM/DD/YYYY format:

  • 06/02/2014
  • 06/2/2014
  • 6/02/2014
  • 6/2/2014

Here is what I have at the moment. However, I feel that users might not catch on to what I mean by it:


Is there a way, in a short space like that, to tell the user what I'm trying to?

  • Convention is M/d/yyyy - number of appearances of character signifies minimal number of digits permitted. – Danny Varod Jun 3 '14 at 0:55
  • 1
    Also, either use ISO standard yyyy-MM-dd or use user's machine settings to determine format e.g. European convention dd/MM/yyyy. – Danny Varod Jun 3 '14 at 0:59

You don't need to. Just show M/d/yyyy. If a user chooses to enter or paste a date with leading zeros then you could show a tick next to the field if it is a valid date.

Most users will use the date picker anyway, and +1 to picking up the users machine settings for format.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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