title: Type to store time in C# and corresponding type in T-SQL
body: <p>I would like to know how to <strong>store time in C# and T-SQL</strong>. I know that both of them provide a <strong>DateTime</strong> type but I just need to store a <strong><em>time</em></strong>. For instance:</p>
  
  <pre><code>var startTime = 9PM;
  var endTime = 10PM;
  </code></pre>
  
  <p>And then <strong>store/retrieve</strong> this values from a database. Thanks in advance.</p>
  
  <p>Francesco </p>