linq compare only date part code example Example: linq compare dates without time DbFunctions.TruncateTime(dateTimeToFormat)