public long dateHeader(final String name, final long defaultValue)
      throws HttpRequestException {
    closeOutputQuietly();
    return getConnection().getHeaderFieldDate(name, defaultValue);
  }
Get a date header from the response falling back to returning the given
default value if the header is missing or parsing fails

@param name
@param defaultValue
@return date, default value on failures
@throws HttpRequestException
lib/src/main/java/com/github/kevinsawicki/http/HttpRequest.java