DateTimeToStr
Converts a TDateTime value to a string