Here you can find the source of toUtilDate(LocalDateTime localDateTime)
public static Date toUtilDate(LocalDateTime localDateTime)
//package com.java2s; //License from project: Apache License import java.time.LocalDateTime; import java.time.ZoneId; import java.time.ZoneOffset; import java.util.Date; public class Main { public static final ZoneId UTC = ZoneId.of("UTC"); public static Date toUtilDate(LocalDateTime localDateTime) { return Date.from(localDateTime.toInstant(ZoneOffset.UTC)); }//from ww w . ja va 2s. com }