title: ASP.NET Entity Framework Where Date Contains
body: <p>I am trying to write a WHERE clause for Entity Framework where Date contains a string from the input text, the input text could be mm or mm/dd or mm/dd/yyyy so I am trying write my WHere clause like so:</p>
  
  <pre><code>query.Where(p =&gt; (p.AccountingDate.Value.Month.ToString() + "/" + p.AccountingDate.Value.Day.ToString() + "/" + p.AccountingDate.Value.Year.ToString).Contains(gsStr))
  </code></pre>
  
  <p>but I get this error:</p>
  
  <pre><code>Operator '+' cannot be applied to operands of type 'string' and 'method group'  
  </code></pre>
  
  <p>What is the best way to do this? I would really really love to use Contains instead of == </p>
  
  <p>Please Help!</p>