Localizing dates
From: Chris (anon)
Date: 01/29/05
- Next message: Paul Tomblin: "Re: Localizing dates"
- Previous message: Chris: "Localizing dates"
- Next in thread: Bob: "Re: Localizing dates"
- Reply: Bob: "Re: Localizing dates"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Fri, 28 Jan 2005 17:53:25 -0600
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.
- Next message: Paul Tomblin: "Re: Localizing dates"
- Previous message: Chris: "Localizing dates"
- Next in thread: Bob: "Re: Localizing dates"
- Reply: Bob: "Re: Localizing dates"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|