fork(1) download
  1. <?php
  2.  
  3. $date = DateTime::createFromFormat('d/m/Y', '31/10/2014');
  4.  
  5. echo $date->format('Y-m-d');
Success #stdin #stdout 0.02s 20520KB
stdin
Standard input is empty
stdout
2014-10-31