String datetime = "2019-05-01 01:02:03.123456789";
 Timestamp timestamp = Timestamp.valueOf(datetime);

Isn't it possible to convert a string to a timestamp like this?

Is the timestamp type just getting the current time?

I would like some advice.

Also, I would like to ask you in addition,
Is there a Listener that moves when the time specified by the timestamp type is reached?

Nice to meet you.

  • Answer # 1

    Date data = sdf.parse("2020/12/26 12:34:56");
     new Timestamp(data);

    It's done.