I can convert a Delphi TDate to ISO 8601 format easily using this:
DateTimeToString(result, \'yyyy-mm-dd\', myDate);
What\'s the idiomatic
From XE8 onwards, use ISO8601ToDate (and DateToISO8601) from dateutils.pas.
ISO8601ToDate
DateToISO8601
dateutils.pas
http://docwiki.embarcadero.com/Libraries/XE8/en/System.DateUtils.ISO8601ToDate