Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

convert Date to LocalDate via SQLDate

public LocalDate convertToLocalDateViaSqlDate(Date dateToConvert) {
    return new java.sql.Date(dateToConvert.getTime()).toLocalDate();
}
Source by www.baeldung.com #
 
PREVIOUS NEXT
Tagged: #convert #Date #LocalDate #SQLDate
ADD COMMENT
Topic
Name
3+4 =