I am using the dynamic linq library with entity framework and want to compare dates. I have succesfully extended the library based on the following SO article here However what I can not seem to do is to get the library to compare just the date portion of the DateTime property of my entity object as I would do with a normal linq expression.
What I am trying to do is have the dynamic linq create a lambda like this:
// Compare just dates
p => p.CreatedDate.Value.Date == '2012/08/01'
Rather than:
// Compares date + time
p => p.CreatedDate == '2012/08/01'
Any ideas on this would be much appreciated.