How can I check if a date is the same day as datetime.today()?
<pre><code>if date_num_posts &lt; datetime.datetime.today(): 
</code></pre>

<p>is always true even if it's the same day because it is comparing time.</p>

<p>How can I check if a date is the same day as datetime.today()?</p>
