Truncates the date to the specified date part. 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:
DateTimeColumn
Context Filtering: ✓ Yes
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
part | text | ✓ Yes | The part to truncate to (year, month, day, etc.). |
date_column | column|datetime | ✓ Yes | The date to truncate. |
part: year, quarter, month, week, day, hour, minute, second
Allowed Column Types: DATETIME, DATE
Validation
- Minimum parameters: 2
- Maximum parameters: 2