Dates & time
Scalar
month()
Extract the month component from a date or timestamp
Arguments & returns
4 overloadsmonth(ts)
Scalar
Example
Haybarn WASM 1.5.5-rc3 · In your browser
Engine example · Run to view results.
In other engines
Apache Sparkmonth()
MONTH('2021-03-01')
MONTH(CAST('2021-03-01' AS DATE))