Skip to Main Content

Java Programming

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/11/2007"

raysefoNov 30 2007 — edited Nov 30 2007
Hello,

I have a code like below; BUT it gives error!!! dateTime is string like "29/11/2007"

Date d = null;
if (dateTime != null && !dateTime.trim().equals("")) {
try {
d = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss.SSS").parse(dateTime);
} catch (Exception e) {
e.printStackTrace();
}
}

Any help please?

thanks
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 28 2007
Added on Nov 30 2007
2 comments
309 views