fork download
  1. <?php
  2.  
  3. $date = DateTime::createFromFormat('d/m/Y', '31/10/2014');
  4. echo $date->format('Y-m-d');
  5.  
  6. //https://pt.stackoverflow.com/q/40262/101
Success #stdin #stdout 0s 82624KB
stdin
Standard input is empty
stdout
2014-10-31