DATEPART

Returns a number indicating the value of a part of a date value for a specified date.

For example, if you wanted the value of the month for a date, you might get a return value of 10 (for October).

NOTE: This function is equivalent to DATEPART in T-SQL.

Return Value

Integer

Syntax

DATEPART( datePart, date )

where: