code: public Date asDate(DateFormat format) throws ParsableException {
          try {
              return format.parse(param);
          } catch (ParseException e) {
              throw new ParsableException(e);
          }
      }
docs: Convert the parameter into a {@link Date} based on the provided <code>format</code>
  @param format
  Could be a <code>new SimpleDateFormat("dd-MM-yy")</code>
  @return
  Parsed <code>Date</code>
  @throws ParsableException
  If the parameter was not on the same form as <code>format</code>