The DATEDIFF function is use to get the differences in days, hours, minutes, seconds etc. and It is returns the time between two dates.
The DATEDIFF function can be used from above version of SQL Server 2005.
I hope you are enjoying with this post! Please share with you friends!! Thank you!!!