<?php $date = DateTime::createFromFormat('d/m/Y', '31/10/2014'); echo $date->format('Y-m-d');
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!