title: SQL need to subtract certain time from date parameter passed into query
body: <p>I have a date parameter so the date and time can always change.</p>
  
  <p>For this example the datetime is '2010-07-06 14:46:37.577'</p>
  
  <p>I need to see how much time is between this date paramter and the time of '17:00:00.000'</p>
  
  <p>The time of 5PM will never change but as I said the date paramter can change.</p>