<?php $ini = "28/05/2017";$ini =str_replace("/", "-", $ini); $newDateini = date( "Y-m-d", strtotime("$ini")); echo $newDateini;
Standard input is empty
2017-05-28
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!