coerce.to-string attempts to parse unknown data to a string. It is a flexible method, and will attempt to take any primitive data type and encode it as a string.
Function category: Coercion
Optional. A format string.
If we have a function that includes a time output, such as DATE, as an argument, this function returns a string based on the format specified.
# Date to stringcoerce.to-string(DATE(1988, 8, 21), 'MMM-yy-dd')# Returns AUG-88-21
If we have a function that is given a Boolean as its argument, this function returns a string value.
# Boolean to stringcoerce.to-string(true)# Returns "true"
If we have a function that is given an integer as an argument, this function returns a string.
# Integer to stringcoerce.to-string(1.1)# Returns "1.1"