title: How to filter the data by Future and Past Dates
body: <blockquote>
    <p>HI, I am new to angular,  I want to show data by past data from
    yesterday's date, and show data of today+future date.</p>
  </blockquote>
  
  <pre><code>//Here is the HTML code for Past Events
  &lt;div ng-repeat="event in events | filter:pastDate"&gt;
  &lt;p&gt;{{event.name}}
  &lt;div&gt;
  
  //Here is the HTML code for Future Events
  &lt;div ng-repeat="event in events | filter:futureDate"&gt;
  &lt;p&gt;{{event.name}}
  &lt;div&gt;
  </code></pre>
  
  <blockquote>
    <p>Each event has a Start Date and End Date, 
    Can anyone please explain how to achieve this.</p>
  </blockquote>