System.Xml.XmlConvert.ToDateTimeOffset Method

Converts the supplied string to a DateTimeOffset equivalent.

Syntax

public static DateTimeOffset ToDateTimeOffset (string s)

Parameters

s
The string to convert.

Returns

The DateTimeOffset equivalent of the supplied string.

Remarks

When more than seven digits are specified for fractional seconds, the value is rounded. For example, 00000004 becomes 0000000 and 00000005 becomes 0000001.

Requirements

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