I found the following code in the FAQs. I'd like to know how the date format can change depending on the locale, and without hardcoding the formatString, e.g. in the States, the general date format is MM-dd-yyyy (month first then date), while in the Australia the general date format is dd-MM-yyyy (date first then month).
Nicole Lacoste
Ranch Hand
Joined: Oct 04, 2006
Posts: 30
posted
0
Hi,
You might want to try looking at the java.text.DateFormat class. It has a method
Gets the date formatter with the given formatting style for the given locale.