4

Is this possible? I found a few solution for converting to and from localDateTime like can be seen here

But I can't find a solution for Joda Instant...

Community
  • 1
  • 1
JTK
  • 1,469
  • 2
  • 22
  • 39

1 Answers1

7

You can use the epoch millis to convert:

Timestamp ts = ....;
Instant i = new Instant(ts.getTime());
Timestamp ts2 = new Timestamp(i.getMillis());
assylias
  • 321,522
  • 82
  • 660
  • 783