title: How to set date format "yyyy-MM-dd hh:mm" in linq?
body: <p>This is my code:</p>
  
  <pre><code>var qry = (from u in _db.ApplicationUsers
             select new UserBroadcastDTO() 
             {
                 UserId = u.Id,
                 DateCreated = u.DateCreated
             }).OrderByDescending(q =&gt; q.DateCreated);
  </code></pre>
  
  <p>I have this exception:</p>
  
  <blockquote>
    <p>LINQ to Entities does not recognize the method 'System.String ToString(System.String)' method, and this method cannot be translated into a store expression.</p>
  </blockquote>
  
  <p>How can I convert date format in linq?</p>