title: AngularJs ng-if comparing dates
body: <p>I am looking to compare two dates in ng-if this is what my jade file looks like.</p>
  
  <pre><code>li.list-group-item(ng-if="app.Segments[0].StartDate.getTime() &gt; date.getTime()")
      div.row
          div.col-xs-12
              span
                  i.fa.fa-plus-square
  </code></pre>
  
  <p>This code will hopefully add an li to my ui if the startdate of the first segment is after today.</p>
  
  <pre><code>$scope.date = new Date();
  $scope.app = {
      Segments: [{
         StartDate: 2014-11-15T04:00:00.000Z
         EndDate: 2014-11-20T04:00:00.000Z
      },
      {
          StartDate: 2014-11-21T04:00:00.000Z
          EndDate: 2014-11-25T04:00:00.000Z
      }]
  
  }
  </code></pre>
  
  <p>Is there anyway to make this work?</p>