From Clomosy Docs
function DateToStr(const DateTime: TclDateTime):string;
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:
myDate = 27.02.2023