From Clomosy Docs

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:

See Also