C#: Operator '>=' cannot be applied to operands of type 'System.DateTime?' and 'int'
<p>I am trying to do the following:</p>

<pre><code>where wt.Rqstcmpldt_dttm &gt;= dueDate.Year - 3 &amp;&amp; wt.Rqstcmpldt_dttm &gt;= 2006 
    &amp;&amp; wt.Rqstcmpldt_dttm &lt; timeframe
</code></pre>

<p>and get the above error message.  Then I tried this:</p>

<pre><code>where (wt.Rqstcmpldt_dttm ?? new DateTime(3000,1,1).Year &gt;= dueDate.Year - 3) 
    &amp;&amp; (wt.Rqstcmpldt_dttm ??  new DateTime(3000,1,1).Year &gt;= 2006) 
    &amp;&amp; (wt.Rqstcmpldt_dttm ??  new DateTime(3000,1,1).Year &lt; timeframe)
</code></pre>

<p>but I get an "Operator '??' cannot be applied to operands of type 'System.DateTime?' and 'bool'" error.</p>

<p>How can I perform the operations?  </p>
