DAY
Description
This function returns an integer that represents the day (day of the month) of the specified date. (DAY in Transact-SQL).
Sample Source Pattern
Syntax
DAY ( date ) DAY( <date_or_timestamp_expr> )Examples
Code:
SELECT DAY('10-10-2022') AS DAYResult:
DAY |
-----+
10|Code:
SELECT DAY('10-10-2022' :: TIMESTAMP) AS DAY;Result:
DAY |
-----+
10|Last updated
Was this helpful?