Java LocalDate to Date localDateToDate(LocalDate ld)

Here you can find the source of localDateToDate(LocalDate ld)

Description

local Date To Date

License

Open Source License

Declaration

public static Date localDateToDate(LocalDate ld) 

Method Source Code

//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 Date localDateToDate(LocalDate ld) {
        return Date.from(ld.atStartOfDay(ZoneId.systemDefault()).toInstant());
    }/*w  ww  .  j  av  a 2  s. c o  m*/
}

Related

  1. date(LocalDate d, ZoneId zone)
  2. date(LocalDate date)
  3. date(LocalDate date)
  4. date(LocalDate date)
  5. localDateToDate(LocalDate date)
  6. toDate(final LocalDate localDate)
  7. toDate(LocalDate date)
  8. toDate(LocalDate finalProjectDate, ZoneId zone)
  9. toDate(LocalDate ld)