Here you can find the source of getPeriodInstant(LocalDate localDate)
public static Instant getPeriodInstant(LocalDate localDate)
//package com.java2s; //License from project: Open Source License import java.time.*; public class Main { public static Instant getPeriodInstant(LocalDate localDate) { LocalDateTime localDateTime = localDate.atStartOfDay(); return localDateTime.toInstant(ZoneOffset.UTC); }/*from w ww . j a v a2 s. c om*/ }