c# linq compare date without year code example Example: linq compare dates without time DbFunctions.TruncateTime(dateTimeToFormat)