You have three options to consider, all with advantages and drawbacks: ISO 8601 specifies a format of YYYY-MM-DD. (Some prefer to modify ISO 8601 by using an abbreviation for the month to make it more clear, for example 2003-Apr-02, but then it is no longer locale neutral.). See also ICU4J since it contains more up-to-date data (and more functionality) than the JDK routines. Weigh the options and choose according to your preferences and your situation.
How do I prepare my web pages to display varying international date formats? Some locales print leading zeroes, others suppress them. Pros: The HTTP Accept-Language header only specifies the user's language preferences, but is commonly used to determine locale preferences as well. If there is likely to be any ambiguity on the part of the user, it is usually best to use explicit month names and 4-digit years for Gregorian dates, or at least indicate on the page how to read the dates.Here are some common ways to write dates for each: These are all possible, and a matter of choice.The more complicated the style of date, the more formal it is.This profile defines a few date/time formats, likely to satisfy most requirements.
The International Standard for the representation of dates and times is ISO 8601.Commas should also be used to separate the day and year, and again the name of the day should come at the beginning.