title: compare the month part with linq
body: <p>I want to compare the month part of two values in linq but im getting an error</p>
  
  <blockquote>
    <p>property or indexer DateTime.Month cannot be assigned to</p>
  </blockquote>
  
  <p>Here's the code</p>
  
  <pre><code>var item = model.Where(d =&gt; d.DATE2.Date.Month = dto.StartDate.Month).FirstOrDefault();
  </code></pre>
  
  <p><code>model</code> is a list of objects with datetime properties and the dto.Startdate is also a datetime</p>