- date_default_timezone_set: documentation ( source)
- date: documentation ( source)
- strtotime: documentation ( source)
<?php
date_default_timezone_set('Europe/Berlin');
$date_now = date('Y-m-d');
$now = strtotime($date_now);
$exp_date = strtotime("2016-02-01");
if ($now>$exp_date){
echo "expired";
}else{
echo "still ok";
}