- strtotime: documentation ( source)
<?php
//$dat = new DateTime();
$date_format = "d.m.Y";
//$dat = $dat->format($date_format);
$dat = strtotime('now');
$che = strtotime('31.05.2013 23:59:59');
if($dat >= $che)
{
echo($dat.' >= '.$che.' меняем баннеры');
}else{
echo($dat.' < '.$che);
}