- date_default_timezone_set: documentation ( source)
- date: documentation ( source)
- strtotime: documentation ( source)
<?php
date_default_timezone_set('Europe/Moscow');
$date_format = "d.m.Y";
$dat = strtotime('now');
$s = date($dat, $date_format);
echo('now = '.$s."\n");
$che = strtotime('31.05.2013 23:59:59');
if($dat >= $che)
{
echo($dat.' >= '.$che.' меняем баннеры');
}else{
echo($dat.' < '.$che);
}