Here you can find the source of obtenirLocalDateAPartirDUneDate(Date date)
public static LocalDate obtenirLocalDateAPartirDUneDate(Date date)
//package com.java2s; //License from project: Open Source License import java.time.LocalDate; import java.time.ZoneId; import java.util.Date; public class Main { public static LocalDate obtenirLocalDateAPartirDUneDate(Date date) { return (date.toInstant().atZone(ZoneId.systemDefault()).toLocalDate()); }/*from ww w . jav a2 s . co m*/ }