NativeXml Help
TXmlNode.WriteDateTime
procedure WriteDateTime(const AName: Utf8String; AValue: TDateTime; ADefault: TDateTime); virtual;
Description
Add or replace the subnode with AName and set its value to represent the TDateTime AValue. If AValue = ADefault, and WriteOnDefault = False, no subnode will be added. The XML format used is compliant with W3C's specification of date and time.