title: ASP Date Comparison
body: <p>Here is the code.</p>
  
  <pre><code>&lt;%
  
  expire_date = Session("expiration_date")
  current_date = date()
  
  If current_date &gt;= expire_date Then
  response.Redirect("../login_expiration.asp")
  Else
  ' do nothing
  End If
  
  %&gt;
  </code></pre>
  
  <p>Assuming the expiration date is 7/10/2011, what should happen?  I expect the redirect to happen, but the opposite does.  If I change the operator to "&lt;=", the redirect happens.</p>
  
  <p>What am I missing?</p>
  
  <p>Thanks</p>
  
  <p>Brett</p>