System.Xml.XmlConvert.ToString Method

Converts the DateTime to a string using the System.Xml.XmlDateTimeSerializationMode specified.

Syntax

public static string ToString (DateTime value, XmlDateTimeSerializationMode dateTimeOption)

Parameters

value
The DateTime value to convert.
dateTimeOption
One of the System.Xml.XmlDateTimeSerializationMode values that specify how to treat the DateTime value.

Returns

A string equivalent of the DateTime.

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: System.Xml
Assembly: System.Xml (in System.Xml.dll)
Assembly Versions: 2.0.0.0, 4.0.0.0
Since: .NET 2.0