Here you can find the source of convertLocalDateTimeToDateInUTC(final LocalDateTime ldt)
public static Date convertLocalDateTimeToDateInUTC(final LocalDateTime ldt)
//package com.java2s; // ProjectForge is dual-licensed. import java.time.Instant; import java.time.LocalDateTime; import java.time.ZoneOffset; import java.util.Date; import java.util.TimeZone; public class Main { /**//from w w w. j a v a2s.com * UTC */ public final static TimeZone UTC = TimeZone.getTimeZone("UTC"); public static Date convertLocalDateTimeToDateInUTC(final LocalDateTime ldt) { final Instant instant = ldt.toInstant(ZoneOffset.UTC); return Date.from(instant); } }