fork download
  1. <?php
  2.  
  3. $data_BD = "2016-07-27";
  4.  
  5. $dt = DateTime::createFromFormat('Y-m-d', $data_BD);
  6. $data = $dt->format('d/m/Y');
  7.  
  8. echo $data;
Success #stdin #stdout 0.02s 52472KB
stdin
Standard input is empty
stdout
27/07/2016