DATEPART function [Date and time]

Returns a portion of a TIMESTAMP or TIMESTAMP WITH TIME ZONE value.

 Syntax
 Parameters
 Returns
 Remarks
 See also
 Standards and compatibility
 Example