<?php $data_BD = "2016-07-27"; $dt = DateTime::createFromFormat('Y-m-d', $data_BD);$data = $dt->format('d/m/Y'); echo $data;
Standard input is empty
27/07/2016
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!