For an overview of all Transact-SQL date and time data types and functions, see ... user-defined variable or string literal. startdate is subtracted from enddate.
msdn.microsoft.com