I have java.util.Date
Object in yyyy-MM-dd
format. I would like to know how to convert this to java.time.LocalDate
with yyyy-MM-dd
format.
Asked
Active
Viewed 33 times
0
![](../../users/profiles/4229270.webp)
Sinto
- 3,710
- 11
- 32
- 59
![](../../users/profiles/9981240.webp)
darkmatter
- 55
- 1
- 10
-
1Please check- this might help you : https://stackoverflow.com/questions/21242110/convert-java-util-date-to-java-time-localdate – Srushtee J. Aug 21 '18 at 06:02
-
Neither a `java.util.Date` nor a `java.time.LocalDate` has got a format. A format comes in a `java.lang.String`. – Ole V.V. Aug 21 '18 at 08:52