C# DateTime falls within the last 24 hours
<p>I have a <code>DateTime</code> object that I'd like to check and see if it falls within the last 24 hours.</p>

<p>I did something like this but its wrong: </p>

<pre><code>myDateTime &gt; DateTime.Now.AddHours(-24) &amp;&amp; myDateTime &lt; DateTime.Now
</code></pre>

<p>where did I go wrong?</p>
