code: public static Date localDateTimeToDate(LocalDateTime local) {
  
          if (local == null) {
              return null;
          }
          ZonedDateTime zdt = local.atZone(ZoneId.systemDefault());
          return Date.from(zdt.toInstant());
      }
docs: Converts a {@link LocalDateTime} object to a {@link Date} object.<p>
  
  @param local the local date time
  
  @return the date