Java LocalDate from Date toLocalDate(Date date)

Here you can find the source of toLocalDate(Date date)

Description

to Local Date

License

Open Source License

Declaration

public static LocalDate toLocalDate(Date date) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

import java.time.LocalDate;

import java.util.Date;

public class Main {
    public static LocalDate toLocalDate(Date date) {
        return LocalDate.from(date.toInstant());
    }//from   w ww . j  av a  2  s .  c  o m
}

Related

  1. toLocalDate(Date calendar)
  2. toLocalDate(Date date)
  3. toLocalDate(Date date)