SQL DATEPART

SQL Server DATEPART function will extract or display the specified date part from the existing date. This SQL Datepart function always returns an integer value. So, for example, If you want to extract the year, month, or quarter from the existing Date, you can use this one. The syntax of the SQL Datepart function is … Read more