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
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: 10826

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!]
I agree. Here's the link:
subject: Strange behaviour of java.text.DateFormat
It's not a secret anymore!