Java tutorial
import java.sql.Timestamp; import java.time.LocalDateTime; import java.time.ZoneOffset; import java.util.Date; public class Main { public static void main(String[] args) { } public static LocalDateTime localDateFromTimestamp(Timestamp timestamp) { return LocalDateTime.ofInstant(timestamp.toInstant(), ZoneOffset.ofHours(0)); } }