View Single Post
Old 10-11-2005, 08:04 AM  
cpanic
Confirmed User
 
Industry Role:
Join Date: Jan 2004
Posts: 267
PHP Code:
<?
$datestring=date("l dS of F Y h:i:s A");
$dateArray = split(" ",$datestring);
$year = $dateArray[4];
$month = $dateArray[3];
$day = preg_replace('/[^0-9]/', '',$dateArray[1]);
list($hour,$min,$sec) = explode(':',$dateArray[5]);
$returntime = mktime($hour,$min,$sec,$month,$day,$year);
echo $datestring." READ IN ".$returntime." RETURNED\n"; 

?>
__________________
cpanic is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote