<?php$data = "2010-01-02"; echo date("d-m-Y",strtotime($data));
Standard input is empty
02-01-2010
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!