Table of Contents

TTMSFNCUtils.DateTimeToISO Method

Formats a date/time value as an ISO-like string.

API unit family: TMSFNCUtils Declaring type: TTMSFNCUtils

Syntax

class function DateTimeToISO(const ADateTime: TDateTime; AAddDelimiters: Boolean = False; AAddMilliSeconds: Boolean = False): string;

Parameters

Name Description
ADateTime Date/time value to format.
AAddDelimiters When True, includes date/time delimiters in the output.
AAddMilliSeconds When True, includes milliseconds in the output.

Returns

Formatted date/time string.