code: public static Set<Date> toDateSet(final Set<Calendar> calendars) {
          return calendars.stream().map(Calendar::getTime).collect(Collectors.toSet());
      }
docs: Converts a Set of Calendar objects to a Set of Date objects
  
  @param calendars
  @return the converset Set&lt;Date&gt;