<?php
$data = "2010-01-02";

echo date("d-m-Y",strtotime($data));