MONTH()
All functions > DATE AND TIME > MONTH()
Returns the month component of a date or timestamp.
Signatures
Returns: The month component
MONTH(timestamp: T) → BIGINT sql
| Parameter | Type | Required | Description |
|---|---|---|---|
timestamp | T | Yes | A DATE or TIMESTAMP value |
With:
T: Custom types: DATE | TIMESTAMP
Notes
- Permissive spelling of
DATE_PART(timestamp, 'month') - Also accepts TIMESTAMP
Examples
FeatureQL
RETURN
-- Extract month
f1 := DATE_PART(DATE '2024-03-15', 'month')
;Result
| f1 BIGINT |
|---|
| 3 |
On this page