Mono Class Library: System.Xml.XmlConvert Overview | Members

System.Xml.XmlConvert.ToString Method

Converts a DateTime to a string .

public static string ToString (DateTime value, string format)

Parameters

value
The DateTime to convert.
format
A string specifying the format to apply to value. Valid formats include "yyyy-MM-ddTHH:mm:sszzzzzz" and its subsets.
format
Documentation for this section has not yet been entered.

Returns

The string representation of value in the specified format..

Remarks

This method calls value.ToString(format, System.Globalization.DateTimeFormatInfo.InvariantInfo).

Requirements

Namespace: System.Xml
Assembly: System.Xml (in System.Xml.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0