Re:Date->TimeStamp
| From: | Daniel Harik | Date: | Sat, 20 Oct 2001 17:10:05 +0000 |
| Subject: | Re:Date->TimeStamp | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-71670@lists.php.net to get a copy of this message | ||
I've tried this code:
$timea = explode(" ",$timepostsed);
$timea1 = explode("-",$timea[0]);
$timea2 = explode(":",$timea[1]);
$timestamp =
mktime($timea2[0],$timea2[1],$timea2[2],$timea1[1],$timea1[2],$timea1[0]);
But it return "-1"