A simple linq query that selects the rows where the ToId equals 1 (as in your "required output")
DateTime start = new DateTime("1/1/2013");
var result = (from a in new YourDataContext().YourTableName
where ((a.ToId == 1 || a.FromId == 1) && a.Time >= start)
select a);
If it's not what you intended, explain a little more, and we will provide ;)
Good luck,
Edo