System.Xml.XmlConvert.ToString Method

Converts the supplied DateTimeOffset to a string in the specified format.

Syntax

public static string ToString (DateTimeOffset value, string format)

Parameters

value
The DateTimeOffset to be converted.
format
The format to which s is converted. The format parameter can be any subset of the W3C Recommendation for the XML dateTime type. (For more information see http://www.w3.org/TR/xmlschema-2/#dateTime.)

Returns

A string representation in the specified format of the supplied DateTimeOffset.

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