1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | <?php $exp_date = "2013-5-6"; $todays_date = date("Y-m-d"); $today = strtotime($todays_date); $expiration_date = strtotime($exp_date); if ($expiration_date > $today) { $valid = "yes"; } else { $valid = "no"; } echo"$valid"; ?> |