fork download
  1. <?php
  2.  
  3. $ini = "28/05/2017";
  4. $ini =str_replace("/", "-", $ini);
  5.  
  6. $newDateini = date( "Y-m-d", strtotime("$ini"));
  7.  
  8. echo $newDateini;
Success #stdin #stdout 0.01s 83904KB
stdin
Standard input is empty
stdout
2017-05-28