I\'m retrieving a timestamp object from a database using ResultSet.getTimestamp(), but I\'d like an easy way to get the date in the format of MM/DD/YYYY>
ResultSet.getTimestamp()
MM/DD/YYYY>
java.sql.Timestamp is a subclass of java.util.Date. So, just upcast it.
Date dtStart = resultSet.getTimestamp("dtStart"); Date dtEnd = resultSet.getTimestamp("dtEnd");
Using SimpleDateFormat and creating Joda DateTime should be straightforward from this point on.