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;
}

相关文章:

  • 2021-11-18
  • 2021-07-17
  • 2022-12-23
  • 2021-07-25
  • 2022-12-23
  • 2021-06-05
  • 2021-08-28
猜你喜欢
  • 2021-11-12
  • 2021-09-13
  • 2022-12-23
  • 2022-12-23
  • 2022-01-01
  • 2022-12-23
  • 2021-09-09
相关资源
相似解决方案