List of utility methods to do ZonedDateTime to
Date | toDate(@Nullable ZonedDateTime dt) Convert the given ZonedDateTime to a Date if (dt == null) return null; return new Date(dt.toInstant().toEpochMilli()); |
Date | toDate(Optional to Date if (date.isPresent()) { return Date.from(date.get().toInstant()); } else { return null; |