Coding⏱️ 2 min read📅 2026-05-31

How to Fix: The specified type member 'Date' is not supported in LINQ to Entities Exception

LINQ to Entities exception due to unsupported date property. Use the Date property directly instead of accessing it through a navigation property or initializer.

Quick Answer: Replace `j.JobDeadline.Date` with `j.JobDeadline` and access the `Date` property directly, like this: `return jobdescriptions.Where(j => Convert.ToDateTime(rule.data).Date < new DateTime(1754, 1, 1));

The error 'The specified type member 'Date' is not supported in LINQ to Entities. Only initializers, entity members, and entity navigation properties are support' occurs because the Entity Framework is unable to translate the .NET DateTime structure into a compatible format for SQL Server.

🛑 Root Causes of the Error

  • Entity Framework uses a different date format than SQL Server.

🛠️ Step-by-Step Verified Fixes

Method 1: Use the ToDate() function

  1. Step 1: Replace `j.JobDeadline.Date` with `Convert.ToDateTime(j.JobDeadline).ToDate()` in your LINQ query.

Method 2: Use the Date property

  1. Step 1: Replace `j.JobDeadline.Date` with `DateTime.ParseExact(j.JobDeadline,

Did this fix your problem?

If not, try searching for specific error codes.

🔍 Search Error Database

❓ Frequently Asked Questions