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