title: How to check if a date has passed in C#?
body: <p>I'm reading the date expires cookie (2 hours) from database, and I need to check if this date has passed. What's the best way to do this? </p>
  
  <p>For example:</p>
  
  <pre><code>public bool HasExpired(DateTime now)
  {
      string expires = ReadDateFromDataBase(); // output example: 21/10/2011 21:31:00
      DateTime Expires = DateTime.Parse(expires);
      return HasPassed2hoursFrom(now, Expires);
  }
  </code></pre>
  
  <p>I'm looking for ideas as write the <code>.HasPassed2hoursFrom</code> method. </p>