try using the Date
property on the DateTime
Object…
if(dtOne.Date == dtTwo.Date)
....
More Related Contents:
- Making Entity Class Closed for Changes
- How to disable cascade delete for link tables in EF code-first?
- How to compare only Date without Time in DateTime types?
- Linq: help me to make this work
- EntityFramework – contains query of composite key
- MetadataException: Unable to load the specified metadata resource
- How do I apply OrderBy on an IQueryable using a string column name within a generic extension method?
- LINQ – Left Join, Group By, and Count
- EntityType has no key defined error
- To return IQueryable or not return IQueryable [closed]
- How to select only the records with the highest date in LINQ
- Entity Framework with XML Files [closed]
- EF 6 – How to correctly perform parallel queries
- DISTINCT() and ORDERBY issue
- EF Data Context – Async/Await & Multithreading
- Received an invalid column length from the bcp client for colid 6
- Entity framework raw SQL Query
- Finding the reason for DBUpdateException
- DbContext discard changes without disposing
- Max return value if empty query
- Group by with multiple columns using lambda
- Best way to update LINQ to SQL classes after database schema change
- Get sum of two columns in one LINQ query
- Parallel doesnt work with Entity Framework
- Unable to find the requested .Net Framework Data Provider. It may not be installed
- Entity Framework Multiple Object Contexts
- The ObjectContext instance has been disposed and can no longer be used for operations that require a connection [duplicate]
- Could not load file or assembly ‘MySql.Data, Version=6.2.2.0
- Repository Pattern, POCO, and Business Entities
- Linq where column == (null reference) not the same as column == null