Function DtoC() Foundation
Converts a date value to a character string.
DtoC( <dDate>[, <cDateFormat>] ) --> cDate
DtoC() returns a date value as a character string. The return value is formatted according to the date format specified in <cDateFormat>. With an empty date, a string of blank spaces equal in length to this date format is returned.
DtoC() is a conversion function which can be used to format date values when the date needs to be displayed as a character string. The returned string is in the format specified in the optional parameter <cDateFormat>. By default, this is the current date format set via SET DATE.
When a date value is used in the index key of an INDEX file, the function DtoS() must be used instead of DtoC() for correct sorting of date values.
If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.