Date Functions MSSQL Tutorial

The syntax  for DATEPART is: DATEPART(part_of_the_date_to_return, the_date)
19>
20> SELECT DATEPART(dw,GETDATE())
21> GO
-----------
          1
(1 rows affected)