title: How can I check if a date is the same day as datetime.today()?
body: <p>This condition always evaluates to <code>True</code> even if it's the same day because it is comparing time.</p>
  
  <pre><code>from datetime import datetime
  
  # ...
  
  if date_num_posts &lt; datetime.today(): 
  </code></pre>
  
  <p>How can I check if a date is the same day as <code>datetime.today()</code>?</p>