XmlConvert.ToString Method (DateTimeOffset, String)
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Converts the supplied DateTimeOffset to a String in the specified format.
Assembly: System.Xml (in System.Xml.dll)
Parameters
- value
- Type: System.DateTimeOffset
The DateTimeOffset to be converted.
- format
- Type: System.String
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 XML Schema Part 2: Datatypes.
Return Value
Type: System.StringA String representation in the specified format of the supplied DateTimeOffset.
Show: