title: Show only date in AngularJS
body: <p>I have a JSON array like this one:</p>
  
  <pre><code>[
  {
      "user": "345",
      "createdOn": "2015-09-01 13:17:22"
  },
  {
      "user": "432",
      "createdOn": "2015-09-01 13:27:56"
  }
  </code></pre>
  
  <p>]</p>
  
  <p>In a <code>&lt;div&gt;</code> tag I am doing this:</p>
  
  <pre><code> &lt;div&gt; class="row" ng-repeat="item in array"             
           {{item.createdOn}}
   &lt;/div&gt;     
  </code></pre>
  
  <p>The output is : 2015-09-01 13:50:59, but I don't want the time part to be shown, i.e. required output is just 2015-09-01.
  I tried using <code>filter</code> but unsuccessfully. Give me some knowledge on this, please.</p>