title: convert unix timestamp to date in Php
body: <p>I already referred the questions in stackoverflow before posting this.
  In my case I need to  convert 1426023505154 to date format.To makesure the time stamp is valid I checked in <a href="http://www.epochconverter.com" rel="nofollow">http://www.epochconverter.com</a>. I used these codes to convert. But that doesn't worked:</p>
  
  <pre><code>date_default_timezone_set('Asia/Calcutta');
  $date = new DateTime();
  $date-&gt;setTimestamp(1426023505154);
  echo $date-&gt;format('U = Y-m-d H:i:s') ;
  echo gmdate("Y-m-d\TH:i:s\Z", 1426023505154);
  echo echo date('d-m-Y', 1426023505154);
  </code></pre>
  
  <p>But all are resulting wrong results such as:</p>
  
  <ol>
  <li><p>47158-11-20 21:49:14</p></li>
  <li><p>20-11-47158</p></li>
  <li>47158-11-20T16:19:14Z</li>
  </ol>
  
  <p>Please let me know how to solve this. 
  Thanks</p>