Skip to Main Content

New to Java

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

java.text.ParseException: Unparseable date: "29-MAY-08"

807601May 29 2008 — edited May 29 2008
Hi all,

I am trying to make a date with this code:
 System.out.println(date);
try {
urlDate = new SimpleDateFormat("dd-MMM-yy").parse(date);
} catch (ParseException e) {
e.printStackTrace();
}
I get this output:
29-MAY-08
java.text.ParseException: Unparseable date: "29-MAY-08"
at java.text.DateFormat.parse(Unknown Source)
at app.ImageManip2D.init(ImageManip2D.java:89)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
The strange thing is that it work's on some pc, but at my pc at home I get this error.

What could this be?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 26 2008
Added on May 29 2008
2 comments
1,068 views