Skip to main content
Extracts the specified date part from a date value. Category: date Syntax:
Returns: IntColumn Context Filtering: ✓ Yes

Parameters

Allowed Values for 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

Extracts the year from each value in the invoice date column.
Returns the week number for the given date (weeks start on Sunday by default). Result: 2
Last modified on March 13, 2026