The Linq dynamic analyzer supports all public members of the System.DateTime type, including the Date property. So you can do something like
DateTime comparisonDate = new DateTime(2012, 8, 1); var query = items.Where("CreatedDate.Value.Date == @0", comparisonDate);
UPDATE If you use the Entity Framework, this example will not work because it does not support translating the DateTime.Date property into SQL. You can usually use the EntityFunctions.TruncateTime() function to achieve the same effect, but this function is not available to the Linq dynamic analyzer without changes. However, you should be able to do something similar to the following (not verified):
var query = items.Where("CreatedDate.Value.Year == @0.Year && CreatedDate.Value.Month == @0.Month && CreatedDate.Value.Day== @0.Day", comparisonDate);
source share