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