A DateTime equivalent of the string.
Type Reason ArgumentNullException s is a null reference. FormatException s is string.Empty or is not in the correct format.
The XmlConvert.ToDateTime(string) method is obsolete in the 2.0 version of the .NET Framework and has been replaced by the XmlConvert.ToDateTime(string, XmlDateTimeSerializationMode) method.