0

creating a form that needs user to input date in the pattern specific to the Locale (country).

Is it possible to get the pattern from a Java class whose input is Locale and output will be "yyyy/mm/dd" or "dd/mm/yyyy" ... Want to use this as a guidance on the form.

change
  • 3,400
  • 7
  • 32
  • 42
  • 1
    i think this issue has been beaten to death here http://stackoverflow.com/questions/4594519/how-do-i-get-localized-date-pattern-string. hope it helps. – s7vr Jun 05 '16 at 03:33
  • most answers there talk about java 8. I am constrained to using java 7. – change Jun 06 '16 at 00:17
  • answer 2 there doesn't work for you ? – s7vr Jun 06 '16 at 05:03

0 Answers0