wood burning stoves 2.0*
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 Android Security Essentials Live Lessons this week in the Android 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: 10170

Please do not post the same topic across multiple forums. Let is continue here http://www.coderanch.com/t/450219/Java-General-intermediate/java/Strange-behavior-java-text-DateFormat

[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
Don't get me started about those stupid light bulbs.
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.