I am trying to execute the following code and am receiving an error
public List GetLoggingData(DateTime LogDate, string title)
{
var context
Convert LongDate to .ToShortDateString
and then you can use it this way:
EntityFunctions.TruncateTime(t.Timestamp) == LogDate
like mike did
Try this:
var calDate = DateTime.Now.Date.AddDays(-90);
var result = return (from r in xyz where DbFunctions.TruncateTime(r.savedDate) >= DbFunctions.TruncateTime(calDate)