java-time-instant-to-java-sql-timestamp
Convert Between java.time.Instant and java.sql.Timestamp 1. Overview Both java.time.Instant and java.sql.Timestamp classes represent a point on the timeline in UTC. In other words, they represent the number of nanoseconds since the Java epoch. In this quick tutorial, we’ll convert one to the other by using built-in Java methods. 2. Converting Instant to Timestamp and Back We… Continue Reading java-time-instant-to-java-sql-timestamp