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.
XmlConvert::ToString Method (DateTime, XmlDateTimeSerializationMode)
.NET Framework (current version)
Converts the DateTime to a String using the XmlDateTimeSerializationMode specified.
Assembly: System.Xml (in System.Xml.dll)
public: static String^ ToString( DateTime value, XmlDateTimeSerializationMode dateTimeOption )
Parameters
- value
-
Type:
System::DateTime
The DateTime value to convert.
- dateTimeOption
-
Type:
System.Xml::XmlDateTimeSerializationMode
One of the XmlDateTimeSerializationMode values that specify how to treat the DateTime value.
| Exception | Condition |
|---|---|
| ArgumentException | The dateTimeOption value is not valid. |
| ArgumentNullException | The value or dateTimeOption value is null. |
Universal Windows Platform
Available since 10
.NET Framework
Available since 2.0
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Available since 10
.NET Framework
Available since 2.0
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Show: