I can convert a Delphi TDate to ISO 8601 format easily using this:
DateTimeToString(result, \'yyyy-mm-dd\', myDate);
What\'s the idiomatic
USES Soap.XSBuiltIns; ... Function XMLDateTimeToLocalDateTime(const Value: String): TDateTime; begin with TXSDateTime.Create do try XSToNative(Value); result := AsDateTime; finally Free; end; end;
Delphi XE3