## Syntax ```mermaid %%{init: { 'theme': 'base', 'flowchart': { 'padding': '7', 'nodeSpacing': '20', 'rankSpacing': '20' }, 'themeVariables': { 'fontSize': '11px', 'fontFamily': 'Arial' } }}%% flowchart LR Start((START)) --> TO_CHAR[TO_CHAR]:::quoted TO_CHAR --> End((END)) ``` ## ## Purpose The `TO_CHAR` SQL function converts a value into text. Parameters: - `input`: value to convert. - `format`: format mask. Optional; defaults to American style. The list of format masks is available in [[Format Masks]]. Returns: the input converted to text.