Another simple trick;

$timestamp="1243949621";
echo  date("d-m-Y", $timestamp);  //02-06-2009