From Clomosy Docs

Revision as of 10:05, 8 October 2024 by ClomosyManager (talk | contribs)

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
TRObject Syntax

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

Base Syntax

var
  myDate : TclDateTime;

begin
  myDate := StrToDate('27.02.2023');
  ShowMessage('myDate = '+DateToStr(myDate));
end;

Output:

See Also