Extracts the specified date part from a date value. Category:Documentation Index
Fetch the complete documentation index at: https://docs.anlytic.com/llms.txt
Use this file to discover all available pages before exploring further.
date
Syntax:
IntColumn
Context Filtering: ✓ Yes
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
precision | text | ✓ Yes | The date part to extract. |
date | column|datetime | ✓ Yes | Date or column of dates from which to extract the date part. |
timezone | text | ✗ No | Optional IANA time zone name (e.g., “America/Los_Angeles”). Defaults to UTC. |
precision: year, quarter, month, week, day, weekday, day_of_year, hour, minute, second, millisecond, epoch
Allowed Column Types: DATETIME, DATE
Validation
- Minimum parameters: 2
- Maximum parameters: 3
Examples
2