got a exception when exec the query in LinqPad
var allNewsInADay= (from t in Tnews where t.SendTime.Value.Year==2012 &&
t.SendTime.Value.Month==8 && t.SendTime.Value.Day==20 select t);
allNewsInADay.Dump();
Exception: The member access ‘System.DateTime Value’ is not supported
if use .HasValue property: NotSupportedException: The member access 'Boolean HasValue' is not supported
—
i use MySql
and my purpose is to get all records in a specific day.
or
will help?
upd: you tried bad. just ran this:
output is: