<?php $date = DateTime::createFromFormat('d/m/Y', '31/10/2014');echo $date->format('Y-m-d'); //https://pt.stackoverflow.com/q/40262/101
Standard input is empty
2014-10-31
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!