C
Chris
In the US, the most common date format is mm/dd/yyyy. In Europe, it's
dd/mm/yyyy.
Is there any way to know which format to use, based on the Locale? It
doesn't appear that java.text.DateFormat or java.text.DateFormatSymbols know
about or acknowledge the difference.
I need to know because I have to parse dates in different locations, and I
want to give the parser a hint about what format to expect. Specifying a
format explicitly at run time is not a possibility.
dd/mm/yyyy.
Is there any way to know which format to use, based on the Locale? It
doesn't appear that java.text.DateFormat or java.text.DateFormatSymbols know
about or acknowledge the difference.
I need to know because I have to parse dates in different locations, and I
want to give the parser a hint about what format to expect. Specifying a
format explicitly at run time is not a possibility.