How do I find the difference between two dates and minutes in SQL?

Trung Minh

New member
How do I find the difference between two dates and minutes in SQL?
Answer
DATEDIFF() is a basic SQL Server function that can be used to do date math. Specifically, it gets the difference between 2 dates with the results returned in date units specified as years, months days, minutes, seconds as an int (integer) value.
 

Tìm kiếm

Back
Top