@Deprecated
    @Override
    public void setExpiryDate (final Date expiryDate) {
        cookieExpiryDate = DateUtils.toInstant(expiryDate);
    }
Sets expiration date.
<p><strong>Note:</strong> the object returned by this method is considered
immutable. Changing it (e.g. using setTime()) could result in undefined
behaviour. Do so at your peril.</p>

@param expiryDate the {@link Date} after which this cookie is no longer valid.

@deprecated Use {{@link #setExpiryDate(Instant)}}
httpclient5/src/main/java/org/apache/hc/client5/http/impl/cookie/BasicClientCookie.java