title: removing time from angular date function
body: <p>I have currently set up date formatting on my app..</p>
  
  <p>Html </p>
  
  <pre><code>&lt;span ng-bind="convertToDate(myDate) | date: 'medium'" id="dtText"&gt;&lt;/span&gt;
  </code></pre>
  
  <p>Angular </p>
  
  <pre><code>$scope.myDate = new Date();
  $scope.convertToDate = function (stringDate) {
  var dateOut = new Date(stringDate);
  dateOut.setDate(dateOut.getDate());
  return dateOut;
  };
  </code></pre>
  
  <p>I have the function working however it is displaying the time which i would like to remove. Just wondering what i would need to add to my function in order to prevent the time from displaying ?</p>