title: duplicate values are showing
body: <p>I have a dropdown in which I am showing the dates:-</p>
  
  <pre><code>&lt;label&gt;Date:&lt;/label&gt;
     &lt;select data-ng-model="date" name="viewDate" data-ng-options="d for d in newDates" data-ng-change="selectDate(date)" required="required"&gt;
          &lt;option value=""&gt;Please Select&lt;/option&gt;
     &lt;/select&gt;
  </code></pre>
  
  <p>Directive Code:-</p>
  
  <pre><code>scope.getDates = function () {
       scope.newDates = [];
      ApiServices.getAllDates().then(
          function (response) {
            scope.dates = response.data;
                scope.dates.forEach(function (entry,index) {    
                    entry = moment(entry).format('YYYY-MM-DD');
                    scope.newDates.push(entry);
          });
       if (scope.dates.length) {
             scope.noRecords = false;
      } else {
            scope.noRecords = true;
       }
    },
     function (err) {
        // Handle error here
      console.log('Error' + JSON.stringify(err.data));
       });
    };
  </code></pre>
  
  <p>As date is coming in epoch I am trying to convert it in the human readable form. But the values are showing duplicate for each entry. I think the code I wrote for converting epoch ino string is wrong.Can anyone tell me my mistake.</p>