Is there a function that uses the date() format to interpret a string?
date()
echo date(\'s-i-H d:m:Y\', 1304591364); // 34-29-17 05:05:2011 // Does t
The function mktime seems to do what you want.
mktime
Check the help over at php.net:
http://php.net/manual/en/function.mktime.php
EDIT : indeed strtotime may be more convenient for you, I did not know that function, glad to learn.
strtotime