MONTH
Description
Returns an integer that represents the month of the specified date. (MONTH in Transact-SQL).
Sample Source Pattern
Syntax
MONTH( date ) MONTH ( <date_or_timestamp_expr> )Examples
Code:
SELECT MONTH('10-10-2022') AS MONTHResult:
MONTH|
-----+
10|Code:
SELECT MONTH('10-10-2022' :: TIMESTAMP) AS MONTH;Result:
MONTH|
-----+
10|Last updated