Tag Archives: Sql functions

DATEPART() function in SQL Server

  DATEPART() function returns a value equal to the part of a specified date. Summery DATEPART(datepart, date) where date is the valid date or a string in date format and datepart can be one of the following: datepart Abbreviation year yy, yyyy quarter qq, q month mm, m dayofyear dy, y day dd, d week … Continue reading DATEPART() function in SQL Server