Differences

This shows you the differences between two versions of the page.

Link to this comparison view

date_to_localdate [2017/02/28 11:23]
date_to_localdate [2021/04/05 11:23] (current)
Line 1: Line 1:
 +====== Date to LocalDate ======
  
 +  date.toInstant().atZone(ZoneId.systemDefault()).toLocalDate();
 +
 +  Date.from(localDate.atStartOfDay(ZoneId.systemDefault()).toInstant());
 +
 +{{tag>java}}