Format the date time into a string. The format can be customized with a string and settings.
Uses System.SysUtils.FormatDateTime
Activity properties
begin var Variable: string; Variable := FormatDateTime('yyyy-MM-dd hh:mm:ss', DateValue); end; |
Resulting code
A value that represents the string output. It can be designed to your preferences with the following options:
Embarcadero wiki FormatDateTime
An optional input to provide datetime format settings for this format.
Variable type: TFormatSettings