to_char/date/ number's format mask must be a constant string

The SQL statement uses a data conversion function with a non-constant format mask string.

Resolution:

Correct the statement.