LINQ convert DateTime to string
问题 List<Post> list = ( from c in db.TitleComments join t in db.Titles on c.TitleId equals t.Id join u in db.Users on c.UserId equals u.Id where t.Id == _titleId && c.Date > time orderby c.Date descending select new Post { Username = u.Username, PostingDate = c.Date.ToString(), Data = c.Comment } ).ToList(); The code above causes exception on the convertion of date to string, PostingDate = c.Date.ToString(). Any ideas how to get around this? Exception error: {"LINQ to Entities does not recognize