Skip to content

Flow documentation · legacy product

FormatDateTime ​

Declaration ​

Function FormatDateTime( const Format : string; DateTime : TDateTime) : string

Example ​

pascal
procedure OnMapEvent(var Value:Variant);
var MyDate : TDateTime
begin
MyDate := Now;
Value := FormatDateTime('dd/mm/yyyy hh:nn',MyDate);
//Value will be equal to eg '26/07/2006 18:35'
end;

Description ​

FormatDateTime converts a DateTime value into a String data type, using a provided Format (see Date Format Specifiers).

This is commonly used when you need to build a String and concatenate an Datetime value.