peut-être ça:
<?php
$date = ""17/01/2005 16:33:14";
$day = substr($date,0,2);
$month = substr($date,3,2);
$year = substr($date,6,4);
$hour = substr($date,12,2);
$minute = substr($date,15,2);
$second = substr($date,18,2);
echo mktime($hour,$minute,$second,$month,$day,$year);
?>
en d'autres termes: http://ch2.php.net/manual/fr/function.mktime.php
|