code: @SuppressWarnings("deprecation")
    public long getHeaderFieldDate(final String name, final long pdefault) {
      final String value = this.getHeaderField(name);
      try {
        return Date.parse(value);
      } catch (final Exception e) { // NOPMD
      }
      return pdefault;
    }
docs: Returns the value of the named field parsed as date. The result is the number of milliseconds
  since January 1, 1970 GMT represented by the named field.
  <p>
  This form of {@code getHeaderField} exists because some connection types (e.g., {@code http-ng}
  ) have pre-parsed headers. Classes for that connection type can override this method and
  short-circuit the parsing.
  </p>
  
  @param name the name of the header field.
  @param pdefault a default value.
  @return the value of the field, parsed as a date. The value of the {@code Default} argument is
  returned if the field is missing or malformed.