Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

X509Certificate::FormatDate Method (DateTime)

.NET Framework (current version)
 

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
)

Parameters

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
Available since 4.0
Return to top
Show:
© 2017 Microsoft