Java Timestamp - How can I create a Timestamp with the date 23/09/2007?

后端 未结 8 1810

How can I create a Timestamp with the date 23/09/2007?

8条回答
  •  醉梦人生
    2020-11-28 21:10

    What about this?

    java.sql.Timestamp timestamp = java.sql.Timestamp.valueOf("2007-09-23 10:10:10.0");
    

提交回复
热议问题