lunedì 18 aprile 2011

COMPARE DATE

$exp_date = $alias1;
$todays_date = date("d-m-Y");
$today = strtotime($todays_date);
$expiration_date = strtotime($exp_date);
//echo $today." ".$expiration_date."<br>";
if ($expiration_date > $today) {...}

Nessun commento:

Posta un commento