day

Returns an integer that represents the day in the datepart of a specified date.

Syntax

day(date_expression)

Parameters

Examples

Usage

day(date_expression) is equivalent to datepart(dd,date_expression).

Standards

ANSI SQL – Compliance level: Transact-SQL extension.

Permissions

Any user can execute day.

Related concepts
System and User-Defined Datatypes
Related reference
datepart
month
year