Straightforward conversion of java.util.Date to java.time.LocalDate

   Java


java.util.Date d = new java.util.Date();

java.time.LocalDate localDate = 
         d.toInstant().atZone(ZoneId.systemDefault()).toLocalDate();

Pin It on Pinterest

Share This