From Clomosy Docs
function DateTimeToStr(const DateTime: TclDateTime):string;
Converts a TclDateTime value to a string, using the local settings for displaying date and time.
Example
var myDate : TclDateTime; { myDate = StrToDateTime(Now); ShowMessage('Middle of a day = '+DateTimeToStr(myDate)); }
Output:
Middle of a day = 27.02.2023 14:59:01