System.Security.Cryptography.X509Certificates.X509Certificate.GetExpirationDateString Method

Returns the expiration date of this X.509v3 certificate.

Syntax

public virtual string GetExpirationDateString ()

Returns

The expiration date for this X.509 certificate.

Remarks

The expiration date is the date after which the X.509 certificate is no longer considered valid.

The X509Certificate.GetExpirationDateString method returns a string that shows the date formatted in Short Date Pattern followed by the time formatted in Long Time Pattern. The date and time are formatted using the current culture and time zone.

Note:

This method may return a different string format on Macintosh computers, although the underlying DateTime object will represent the same value.

Requirements

Namespace: System.Security.Cryptography.X509Certificates
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0