This week's book giveaway is in the OCAJP forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide 1Z0-808 and have Jeanne Boyarsky & Scott Selikoff on-line! See this thread for details.
Well, you get the value from the DB as a Date object, rather than as a String you then parse. Then you apply the formating you need by defining it in your SimpleDateFormat (read the docs) and calling the format method.