title: DateTime.Compare how to check if a date is less than 30 days old?
body: <p>I'm trying to work out if an account expires in less than 30 days. Am I using DateTime Compare correctly?</p>
  
  <pre><code>if (DateTime.Compare(expiryDate, now) &lt; 30)
  
  {
       matchFound = true;
  }
  </code></pre>