User Tools

Site Tools


date_to_localdate

Differences

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

Link to this comparison view

date_to_localdate [2017/02/28 10:23] (current)
mihael created
Line 1: Line 1:
 +====== Date to LocalDate ======
  
 +  date.toInstant().atZone(ZoneId.systemDefault()).toLocalDate();​
 +
 +  Date.from(localDate.atStartOfDay(ZoneId.systemDefault()).toInstant());​
 +
 +{{tag>​java}}
date_to_localdate.txt ยท Last modified: 2017/02/28 10:23 by mihael