Newer Version Available

This content describes an older version of this product. View Latest

date_to_string(DateTime | DateOnly, formatString)

Converts a date to a string.

This function takes a DateTime, DateOnly, or now() as its first argument. For the allowed formats, see the Analytics External Data Format Reference.

Use date_to_string() to display the close date for your opportunities in the format yyyy-mm-dd.