code: public long parseDate(String timestamp) {
      try {
        return dateFormat().get().parse(timestamp).getTime();
      } catch (ParseException e) {
        throw new AssertionError(e);
      }
    }
docs: for testing