linq compare datetime to current date code example Example: linq compare dates without time DbFunctions.TruncateTime(dateTimeToFormat)