month

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

Syntax

month(date_expression)

Parameters

Examples

Usage

month(date_expression) is equivalent to datapart(mm, date_expression).

Standards

ANSI SQL – Compliance level: Transact-SQL extension.

Permissions

Any user can execute month.

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