Konvertieren Sie das Datum in OffsetDatetime in Java

Date date = new Date();
OffsetDateTime offsetDateTime = date.toInstant()
  .atOffset(ZoneOffset.UTC);
Talented Tarantula