I am writing this code. Here dt is input into the function, as well as someint. The column Exp is a T-SQL date column, which comes as a DateTime through Linq.
You can also use SqlMethods.DateDiffDay method, if you're trying to compare two dates