Last updated 3 months ago
SQL Server
Azure Synapse Analytics
Returns an integer that represents the month of the specified date. ().
MONTH( date )
MONTH ( <date_or_timestamp_expr> )
Code:
SELECT MONTH('10-10-2022') AS MONTH
Result:
MONTH| -----+ 10|
SELECT MONTH('10-10-2022' :: TIMESTAMP) AS MONTH;
No issues were found.
No related EWIs.