forum

Home / DeveloperSection / Forums / Filter objects inside model class by date

Filter objects inside model class by date

Anonymous User 1556 29-Sep-2014

I have a model object called EventListingResponse like this 

public class EventListingResponse
{
    public List<events> result { get; set; }
    public int totalResults { get; set; }
}
 public class events
{
    public string id { get; set; }
    public string name { get; set; }
    public string startDate { get; set; } //smaple date 2014-03-31T12:30:03
}

And I am storing data in this object like this 

EventListingResponse eventListResponse = rGetAllEventList();//data from another function.

Now I want to filter this list so that I can get a list of events like , -->events from January -->Events from February etc. Can any one point out a good method to accomplish this?


c# c# 
Updated on 29-Sep-2014
I am a content writter !

Can you answer this question?


Answer

1 Answers

Liked By