How about two SimpleDateFormat objects? You use the first to convert the MySQL date
string into a Date object, then use the second to convert that Date object back into a string.
However, if you retrieve the values directly from the database, you shouldn't use Strings at all. ResultSet and PreparedStatement can work with Date objects: java.sql.Date for the date only, java.sql.Time for the time only, and java.sql.Timestamp for both date and time. All three classes extend java.util.Date. Conversion between them can be done with the constructors: