You could use the SimpleDateFormat class to parse the date into a Date object and use another SimpleDateFormat object to parse it into the required format.
Here's an example of how to do it:
String sqlDate = "1992-02-16";
SimpleDateFormat sdfInput = new SimpleDateFormat("yyyy-MM-dd");
Date date = sdfInput.parse(sqlDate);
SimpleDateFormat sdfResult = new SimpleDateFormat("MM-dd-yyyy");
String result = sdfResult.format(date);
The reason why the database is storing it in yyyy-MM-dd
format is to allow sorting, while your JCalendar
uses MM-dd-yyyy
format because it is the standard American way of displaying a date.
I also strongly recommend you use a PreparedStatement and add the parameters to it rather than concatenating.