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
You would typically use strtotime for that:
echo strtotime('2011-05-05 17:29:34');
From the manual:
strtotime — Parse about any English textual datetime description into a Unix timestamp
See valid date and time formats to be sure that the string you are passing in will be parsed correctly.