title: Applying AngularJS date filters with condition
body: <p>I just started with AngularJS and got stuck with a problem.</p>
  
  <p>I have a date field to show in a grid.
  Date format should be relative format like "1 day ago, 10 mins ago...."
  So for that i used <code>timeAgo</code>, so it formats the date correctly.</p>
  
  <p>But I have a requirement like:</p>
  
  <blockquote>
    <p>If the <code>last_updated_time</code> is less than 10 days, then show relative time like "1 day ago, 10 mins ago...."  else do not apply any filter.</p>
  </blockquote>
  
  <p>Here is my code snippet.</p>
  
  <pre><code>&lt;td data-title="'Last modified'" sortable="'last_updated_time'" align='center'&gt;
      {{offer.last_updated_time | timeAgo }}
  &lt;/td&gt;
  </code></pre>
  
  <p>It would be great if someone can guide me how to proceed.</p>