puoi usare mktime

http://php.net/manual/en/function.mktime.php