Convert java.sql.date to java.time.LocalDateTime

Ferre12 :

How do I convert a java.sql.Date returned from a JDBC database to a java.time.LocalDateTime?

Ferre12 :

It was actually easier than I thought. This worked for me: result.getTimestamp("value").toLocalDateTime()

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=446564&siteId=1