$n = 10;
echo date("Y-m-d H:i:s",strtotime("2005-01-01 +$n day"));