code: public static Date getFromTimestamp(Timestamp timestamp) {
          if (timestamp == null) {
              return null;
          }
          return new Date(timestamp.getTime());
      }
docs: Get a date from a timestamp
  @param timestamp time stamp
  @return date from a timestamp