title: How can I tell if DateTime.Now() is on a day AFTER a different DateTime
body: <p>I'm running this on flutter, but I guess this could be a more general issue.</p>
  
  <p>I am saving a DateTime in the preferences. I want to be able to then tell if <code>DateTime.now()</code> is on <strong>at least a day after</strong> the last saved DateTime, i.e.</p>
  
  <pre><code>(pseudocode)
  lastDailyCheck = 2020.04.10
  now = 2020.04.11
  </code></pre>
  
  <p>=> now is a day after the lastDailyCheck.</p>
  
  <p>This should already work if it is 00:01 on the new day, even if the lastDailyCheck was on 23:58 the day before, meaning the difference can be as low as minutes between the 2 DateTimes.</p>
  
  <p>Turns out this is really complicated!</p>
  
  <h1>Here's what doesn't work:</h1>
  
  <p><code>DateTime.Now().isAfter(lastDailyCheck)</code></p>
  
  <p>This only checks if now is <em>after</em> the last one, it also return true after a second, and on the same day.</p>
  
  <p><code>DateTime.Now().isAfter(lastDailyCheck) &amp;&amp; lastDailyCheck.day != DateTime.Now().day</code></p>
  
  <p>I thought this was clever. If the day is different and it is <strong>after</strong> the last then it does work in recognizing it is a day later - but then I realized it would bug out when both days are say on the 15th of the month - then <code>lastDailyCheck.day</code> would equal <code>DateTime.Now().day</code>.</p>
  
  <p>What do you think would be possible here?</p>