Converts the DateTime to a string using the System.Xml.XmlDateTimeSerializationMode specified.
- value
The DateTime value to convert.
- dateTimeOption
One of the System.Xml.XmlDateTimeSerializationMode values that specify how to treat the DateTime value.