function DateTimeToISOStr(Value: DateTime): String
The DateTimeToISOStr function returns an ISO-8601-formatted date-time string value for the date-time input parameter. The return value is a String value.
Examples
X := DateTimeToISOStr(StrToDateTime('8/15/2015 12:40 PM')); // X is '2015-08-15T16:40:00.000Z'