public static java.sql.Timestamp StrTransSqlDate(String date) {
SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
java.util.Date nowDate;
java.sql.Timestamp transdate = null;
try {
nowDate = simpleDateFormat.parse(date);
transdate = new java.sql.Timestamp(nowDate.getTime());
} catch (Exception e) {
e.printStackTrace();
}
return transdate;
}