File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Beginning Java and the fly likes Strange behaviour of java.text.DateFormat Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Beginning Java
Reply locked New topic

Strange behaviour of java.text.DateFormat

Chaitanya Brahma

Joined: Jun 05, 2009
Posts: 3
Hi Ranchers,

I have come across a real strange behavior of the class java.text.DateFormat. The code listed below executes properly on one Eclipse environment but gives "java.text.ParseException: Unparsable date" on another one!

Can anyone please throw some light as to what could be the possible issue here?

Thanks a ton in advance!

The code in question is as listed below -

Exception I get :

Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10167

Please do not post the same topic across multiple forums. Let is continue here

[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
It is sorta covered in the JavaRanch Style Guide.
subject: Strange behaviour of java.text.DateFormat
Similar Threads
Strange behavior of java.text.DateFormat
Need to change Calendar to dd/mm/yyyy format
Calendar class should not do this. I think.
Problems with custom xsd:dateTime conversion
Validation check for the day using util.