Mono Class Library: System.Xml.XmlConvert Overview | MembersSystem.Xml.XmlConvert.ToDateTime Method |
Converts a string to a DateTime equivalent. [Edit]
|
The DateTime equivalent of s. [Edit]
Type Reason ArgumentNullException s is a null reference. [Edit] FormatException s or format is string.Empty .
-or-
s does not contain a date and time that corresponds to format.
[Edit]
This method calls DateTime.ParseExact(string, string, IFormatProvider)(s, format, System.Globalization.DateTimeFormatInfo.InvariantInfo, System.Globalization.DateTimeStyles.AllowLeadingWhite|System.Globalization.DateTimeStyles.AllowTrailingWhite).
Valid formats include "yyyy-MM-ddTHH:mm:sszzzzzz" and its subsets.
[Edit]
Namespace: System.Xml
Assembly: System.Xml (in System.Xml.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0