GetExpirationDateString Method

X509Certificate.GetExpirationDateString Method

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Returns the expiration date of this X.509 version 3 certificate.

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

public virtual string GetExpirationDateString()

Return Value

Type: System.String
The expiration date for this X.509 certificate.

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.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2016 Microsoft