title: Cannot implicitly convert type 'System.Linq.IQueryable<System.DateTime>' to 'System.DateTime'
body: <p><strong>My modal</strong></p>
  
  <pre><code>Public class Details{
      public DateTime Startdate { get; set; }
      public DateTime EndDate { get; set; }
  }
  </code></pre>
  
  <p><strong>Controller</strong></p>
  
  <pre><code>Details.Startdate = db.Bill.Where(u =&gt; u.BillId == Maxbillid).Select(u =&gt; u.EndDate );
  Details.EndDate = db.Bill.Where(u =&gt; u.BillId == Maxbillid).Select(u =&gt; u.EndDate );
  </code></pre>
  
  <p><strong>Error</strong> </p>
  
  <blockquote>
    <p>Cannot implicitly convert type 'System.Linq.IQueryable' to 'System.DateTime'"</p>
  </blockquote>