java.util.Date vs java.sql.Date ** 1. Overview In this tutorial, we’re going to compare two date classes: java.util.Date and java.sql.Date. Once we complete the comparison, it should be clear which one to use and why. 2. java.util.Date The java.util.Date class represents a particular moment in time, with millisecond precision since the 1st of… Continue Reading java-util-date-sql-date

Convert Date to LocalDate or LocalDateTime and Back 1. Overview Starting with Java 8, we have a new Date API – java.time. However, sometimes we still need to perform conversions between the new and the old APIs, and work with date representations from both. Further reading: Migrating to the New… Continue Reading java-date-to-localdate-and-localdatetime