SQL

SQL Server DATEPART() Function

Return a specified part of a date: