From Clomosy Docs

No edit summary
No edit summary
Line 7: Line 7:


<b>Example</b><br>
<b>Example</b><br>
<b>TRObject Syntax</b><br>
 
<pre>
<pre>
var
var
Line 15: Line 15:
   ShowMessage('myDate = '+DateToStr(myDate));
   ShowMessage('myDate = '+DateToStr(myDate));
}
}
</pre>
<b>Base Syntax</b><br>
<pre>
var
  myDate : TclDateTime;
begin
  myDate := StrToDate('27.02.2023');
  ShowMessage('myDate = '+DateToStr(myDate));
end;
</pre>
</pre>



Revision as of 11:08, 13 November 2024

Converts a TclDateTime value into a string.
Use DateToStr to obtain a string representation of a date value that can be used for display purposes.

Example

var
  myDate : TclDateTime;
{
  myDate = StrToDate('27.02.2023');
  ShowMessage('myDate = '+DateToStr(myDate));
}

Output:

See Also