Answers for "sql date to localdate java"

0

java convert date to localdate

date.toInstant().atZone(ZoneId.systemDefault()).toLocaldate()
Posted by: Guest on April-26-2022
-1

convert date to localdate java

public LocalDate convertToLocalDateViaInstant(Date dateToConvert) {
    return dateToConvert.toInstant()
      .atZone(ZoneId.systemDefault())
      .toLocalDate();
}
Posted by: Guest on December-04-2020
0

convert Date to LocalDate via SQLDate

public LocalDate convertToLocalDateViaSqlDate(Date dateToConvert) {
    return new java.sql.Date(dateToConvert.getTime()).toLocalDate();
}
Posted by: Guest on January-05-2022

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language