I use the date() function to get day, month and year.
$year = date(y); $month = date(m); $day = date(d);
But my hosting is in another plac
you could use http://www.php.net/manual/en/function.date-default-timezone-set.php to set the timezone to what you want