This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
But when executing my jsp page teh tomcat is throwing the error:
Unparseable date: "2006-03-14 00:00:00.0"
So what to do now??
Joined: Sep 20, 2003
Try this: String dateString = "2006-03-14 00:00:00.000"; // i guess u get it from db SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd"); Date date = format.parse(dateString); format.applyPattern("dd-MM-yyyy"); String dt = format.format(date);
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com