Java tutorial
import java.time.LocalDate; import java.time.ZoneId; import java.util.Date; public class Main { public static void main(String[] args) { System.out.println(asLocalDateInUTC(new Date())); } public static LocalDate asLocalDateInUTC(Date date) { ZoneId UTC = ZoneId.of("Z"); return date.toInstant().atZone(UTC).toLocalDate(); } }