This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Exception: Unparseable date for different languages

 
Steve Jiang
Ranch Hand
Posts: 124
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am using the following code to convert the date for different language, but it works for English and Japanse, but failed for Chinese and Korea with the error like "java.text.ParseException: Unparseable date: "2009-08-14 下午 10:00:01""


What will be better way to handle all kinds of language for Date format?


 
Mathew Lee
Ranch Hand
Posts: 238
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i am not sure if you can do all kinds of languages
 
Steve Jiang
Ranch Hand
Posts: 124
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The code is using as ORADateFormat to get the pattern , looks like it works for English, Japanese.

I have n't find the way to convert the ORADateformat pattern with simpledateformat, but I am guess it could have some way?


 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic