Here you can find the source of toMilliseconds(LocalDate localDate)
public static long toMilliseconds(LocalDate localDate)
//package com.java2s; import java.time.LocalDate; import java.time.LocalDateTime; import java.time.ZoneId; public class Main { /**//from w w w.ja v a2 s .com * Converts local date time to epoh milliseconds. */ public static long toMilliseconds(final LocalDateTime localDateTime) { return localDateTime.atZone(ZoneId.systemDefault()).toInstant().toEpochMilli(); } /** * Converts local date time to epoh milliseconds assuming start of the day as time point. */ public static long toMilliseconds(LocalDate localDate) { return toMilliseconds(localDate.atStartOfDay()); } }