title: Change date format in array and return a json
body: <p>How to change date format in my array </p>
  
  <p><code>print_r($data);</code></p>
  
  <pre><code>[01] =&gt; Array
      (
          [status] =&gt; Pending
          [number] =&gt; 123
          [DESCRIPTION] =&gt; description
          [STARTDATE] =&gt; 1544079879
          [RESTOREDATETIME] =&gt; 1544080492
      )
  </code></pre>
  
  <p>I want to change date format </p>
  
  <pre><code>$data = $my-&gt;getCustFunction();
  header("Content-Type: application/json");
  print json_encode($data);
  return;
  </code></pre>
  
  <p>i wan to return like this </p>
  
  <pre><code>[01] =&gt; Array
      (
          [status] =&gt; Pending
          [number] =&gt; 123
          [DESCRIPTION] =&gt; description
          [STARTDATE] =&gt; 1544079879(d/m/y)
          [RESTOREDATETIME] =&gt; 1544080492
      )
  </code></pre>