how to calculate DATE difference in hours and minutes in sql server from code example Example: sql hours between two dates DATEDIFF ( hour, start_date , end_date )