Please enable JavaScript to view this site.

Codolex

Format the date time into a string. The format can be customized with a string and settings.

Uses System.SysUtils.FormatDateTime

 

DateTimeFormat

Activity properties

 

begin

var Variable: string;

 Variable := FormatDateTime('yyyy-MM-dd hh:mm:ss', DateValue);

end;

Resulting code

 

Format

A value that represents the string output. It can be designed to your preferences with the following options:

Embarcadero wiki FormatDateTime

 

FormatSettings value

An optional input to provide datetime format settings for this format.

Variable type: TFormatSettings

 

© by GDK Software