title: check datetime falling between 2 dates
body: <p>I have to check datetime falling between this dates. I have 2 old dates and 2 new dates and basically need to check whether it's a match or not.</p>
  
  <pre><code>DateTime old_start_Dt = Convert.ToDateTime("07/28/2014 3:30:00 AM");
  DateTime old_end_Dt = Convert.ToDateTime("07/28/2014 4:00:00 AM");
  
  DateTime new_start_Dt = Convert.ToDateTime("07/28/2014 3:45:00 AM");
  DateTime new_end_Dt = Convert.ToDateTime("07/28/2014 5:00:00 AM");
  
  //above dates example should found match.
  
  bool _matchfound = false;
  
  if ((new_start_Dt &gt;= old_start_Dt || new_start_Dt &lt;= old_start_Dt)
     &amp;&amp; (new_end_Dt &gt;= old_end_Dt || new_end_Dt &lt;= old_end_Dt))
  {
      _matchfound = true;
  }
  </code></pre>
  
  <p>Any guess what I am wrong here in my logic?</p>