title: How to know if a DateTime is between a DateRange in C#
body: <p>I need to know if a Date is between a DateRange. I have three dates:</p>
  
  <pre class="lang-cs prettyprint-override"><code>// The date range
  DateTime startDate;
  DateTime endDate;
  
  DateTime dateToCheck;
  </code></pre>
  
  <p>The easy solution is doing a comparison, but is there a smarter way to do this?</p>