I'm using dynamic linq to build a query in runtime. I'm preparing the following command
var temp = list
.AsQueryable()
.Where("Date<DateTime(2014,10,22,21,05,56)")
.Select("it");
return temp.Cast<T>().ToList();
The condition is not executing properly and i'm getting a wrong set of results. My filter condition is dynamic and i'll generate it only in run time. Can you help me in resolving this issue. Is there a Hour minute second comparison possible in dynamic linq?