/ Published in: PHP
Forms a php timestamp out of an date string i.e. create_timestamp(24.12.2007);
Expand |
Embed | Plain Text
function create_timestamp($date) { // Format : DD.MM.YYYY { } else return false; }
Comments
Subscribe to comments
You need to login to post a comment.

$date = "02.26.2008"; // Format : DD.MM.YYYY echo strtotime($date);
strtotime() is your friend ;-) http://www.php.net/manual/en/function.strtotime.php