code: public static Date copy(final Date d) {
          if (d == null) {
              return null;
          } else {
              return new Date(d.getTime());
          }
      }
docs: Creates a copy on a Date.
  
  @param d The Date to copy, can be null
  @return null when the input Date was null, a copy of the Date otherwise