Java LocalDate to Date toDate(LocalDate finalProjectDate, ZoneId zone)

Here you can find the source of toDate(LocalDate finalProjectDate, ZoneId zone)

Description

to Date

License

Open Source License

Declaration

public static Date toDate(LocalDate finalProjectDate, ZoneId zone) 

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 toDate(LocalDate finalProjectDate, ZoneId zone) {
        return Date.from(finalProjectDate.atStartOfDay().atZone(zone).toInstant());
    }// ww  w.  j  av a2  s  . c o  m
}

Related

  1. date(LocalDate date)
  2. localDateToDate(LocalDate date)
  3. localDateToDate(LocalDate ld)
  4. toDate(final LocalDate localDate)
  5. toDate(LocalDate date)
  6. toDate(LocalDate ld)
  7. toDate(LocalDate ld)
  8. toDate(LocalDate localDate)
  9. toDate(LocalDate localDate)