date_to_string()

Converts a date to a string.

date_to_string(date, formatString)

For the allowed formats, see Date Formats.

This function is identical to toString().

This function must take a toDate() or now(​) function as its first argument.