title: How to adjust a date format in an array?
body: <p>Here, I want to get only date from an array.
  Array is:</p>
  
  <pre><code>print_r($incomplete);
  Output:
  Array
  (
      [0] =&gt; 2015-09-21 11:20:37
  )
  </code></pre>
  
  <p>And <strong>I want in below Format</strong>,</p>
  
  <pre><code>Array
  (
      [0] =&gt; 2015-09-21
  )
  </code></pre>
  
  <p>I have tried like this,</p>
  
  <pre><code>echo date('Y-m-d',strtotime($incomplete));
  </code></pre>