On 25/06/07, Adrian Sandor <[EMAIL PROTECTED]> wrote:
> Hi, I'd like to format a date (showing only day and
> month) in a locale-dependent way. E.g. 25/6, 6/25,
> 25-6. Does joda-time support that?

Unfortunately, Joda-Time doesn't have the data to determine the
correct order of date fields for this very short form of a date. The
main problem is gathering the info and keeping it up to date, which is
really a task that CLDR is best suited to.

My only suggestion is to print a known date using a locale specific
formatter (on DateTimeFormat), and then parse it to see which order
the field are. Yucky I know.

I'd like to address this in JSR-310, but I'm not sure we'll get to it.

Stephen

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Joda-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/joda-interest

Reply via email to