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