## Syntax ```mermaid %%{init: { 'theme': 'base', 'flowchart': { 'padding': '7', 'nodeSpacing': '20', 'rankSpacing': '20' }, 'themeVariables': { 'fontSize': '11px', 'fontFamily': 'Arial' } }}%% flowchart LR Start((START)) --> DAYOFWEEK[DAYOFWEEK]:::quoted DAYOFWEEK --> End((END)) ``` ## Purpose The `DAYOFWEEK` SQL function collects the day of a week from a date. Parameters: - Input: A dateTime. Returns: the day of a week as an integer.