Share via


X509Certificate2.GetExpirationDateString Method

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

Namespace: System.Security.Cryptography.X509Certificates
Assembly: System.Security (in system.security.dll)

Syntax

public virtual string GetExpirationDateString ()

Return Value

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 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.

Version Information

Available in the .NET Micro Framework version 4.2.

See Also

Reference

X509Certificate2 Class
X509Certificate2 Members
System.Security.Cryptography.X509Certificates Namespace