Displaying processDate
from dataItem2
does not require LINQ… Just user standard dot notation. If this does not answer your question please post the relevant code.
Proper way:
dataItem2.ProcessDate
On the other hand if you have a collection of DataItem objects like below:
List<DataItem> items = PopulateMyItems();
then you can filter like so:
items.Where(t=>t.ProcessDate > TwoWeeksAgo);
Where TwoWeeksAgo
would be a DateTime for two weeks ago.
1
solved How to filter using LINQ? [closed]