XmlWriter.WriteValue Method (DateTime)
Writes a DateTime value.
Assembly: System.Xml (in System.Xml.dll)
This method takes the common language runtime object and converts the input value to the desired output type using the XML Schema definition language (XSD) data type conversion rules.
If WriteValue is called multiple times in succession, the values are not delimited by a space. You must call WriteWhitespace between calls to WriteValue to insert white space. Pass an array type to the XmlWriter.WriteValue(Object) overload to write out an array of distinct values.
If this method is called on an XmlWriter instance that outputs text-only, the typed value is serialized to text.
For more information, see Writing Typed Data.
For the asynchronous version of this method, see WriteValueAsync.
Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.