How to Calculate the Difference Between Two Dates in T-SQL
https://learnsql.com/cookbook/how-to-calculate-the-difference-between-two-dates-in-t-sql/
WEBTo find the difference between dates, use the DATEDIFF(datepart, startdate, enddate) function. The datepart argument defines the part of the date/datetime in which you'd like to express the difference. Its value can be year, quarter, month, day, minute, etc. In this example, you want to express the difference in days, so the first argument is day.
DA: 82 PA: 74 MOZ Rank: 37 Up or Down: Up