Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
FormatDate Method

X509Certificate.FormatDate Method

.NET Framework 4.6 and 4.5

Converts the specified date and time to a string.

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

protected static string FormatDate(
	DateTime date


Type: System.DateTime

The date and time to convert.

Return Value

Type: System.String
A string representation of the value of the DateTime object.

Some cultures cannot convert future dates into strings. If the expiration date of an X.509 certificate is beyond the range of the culture, FormatDate falls back to a calendar that can express the date. If the Calendar value is UmAlQuraCalendar, the calendar is changed to the HijriCalendar class; otherwise, it is changed to the InvariantCulture.

.NET Framework

Supported in: 4.6, 4.5, 4

.NET Framework Client Profile

Supported in: 4
© 2015 Microsoft