string转date
/*util-->sql*/
java.util.Date utdt;
java.sql.Date sqldt =null;
SimpleDateFormat simFormat = new SimpleDateFormat("yyyy-MM-dd");
try {
utdt =simFormat.parse(Birthday);
sqldt =new java.sql.Date(utdt.getTime());
} catch (ParseException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
user.setBirthday(sqldt);