From Clomosy Docs
function DateToStr(Date TclDateTime):string;
The DateToStr function converts a DateTime value to a formatted date string.
Example:
- Base Syntax
var myDate : TclDateTime;
begin myDate := StrToDate('27.02.2023'); ShowMessage('myDate = '+DateToStr(myDate)); end;
- TRObject Syntax
var
myDate : TclDateTime;
{
myDate = StrToDate('27.02.2023');
ShowMessage('myDate = '+DateToStr(myDate));
}
Output:
myDate = 27.02.2023