DAY (TSQL Function)
Returns the day of the specified date.
Syntax
DAY ( date )
Arguments
- date
- is an expression of type
date
ordatetime
.
Return Types
Returns int
.
Examples
PRINT DAY('2016-10-04');
The result is:
4
Returns the day of the specified date.
DAY ( date )
date
or datetime
.Returns int
.
PRINT DAY('2016-10-04');
The result is:
4