SQL Server: DATEDIFF Function
This SQL Server tutorial explains how to use the DATEDIFF function in SQL Server (Transact-SQL) with syntax and examples. Description In SQL Server (Transact-SQL), the DATEDIFF function returns the difference between two…