title: Cannot apply operator. How would I fix this?
body: <p>I want to display a message only when the datetime is before or on todays date.  Here is what I have:</p>
  
  <pre><code>var todaysdate = DateTime.Today;
  
  if (acct.maturityDate &lt;= todaysdate )           
  {
     maturityText.Visible = true;  
  }
  </code></pre>
  
  <p>I get a message saying that  <code>(acct.maturityDate &lt;= todaysdate )</code>.</p>
  
  <blockquote>
    <p>Cannot apply operator '&lt;=' to operands of type 'string' and 'system.datetime', candidates are bool &lt;=(system.datetime,system.datetime) (in struct datetime).</p>
  </blockquote>
  
  <p>Any help is appreciated.</p>