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

后端 未结 8 1813

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

8条回答
  •  失恋的感觉
    2020-11-28 21:18

    A more general answer would be to import java.util.Date, then when you need to set a timestamp equal to the current date, simply set it equal to new Date().

提交回复
热议问题