commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mario Ivankovits <ma...@ops.co.at>
Subject Re: [NET] Designing a Date Format-aware FTP Entry Parser
Date Tue, 28 Sep 2004 13:02:12 GMT
Steve Cohen wrote:

>>>>form jui 7
>>>>rather than
>>>>7 jui
>>>>        
>>>>
Steven, we have a problem?

I have tried to parse the date you shown in your ftp-locales test.

        SimpleDateFormat sdf = new SimpleDateFormat("MMM dd", new 
Locale("fr", "FR"));
        Date dt = sdf.parse("jui 7");

"jui 7" is not parseable!!!!!!
java.text.ParseException: Unparseable date: "jui 7"
    at java.text.DateFormat.parse(DateFormat.java:335)

while "juil."  (javas short french form) is.

        SimpleDateFormat sdf = new SimpleDateFormat("MMM dd", new 
Locale("fr", "FR"));
        Date dt = sdf.parse("juil. 7");

---
Mario

Mime
View raw message