You have to get the timestamp of the date.
$now=time();
$date=mktime($hour,$minute,$second, $month, $day, $year);
$difference=30*24*60*60 //difference in seconds
if($now-$date<$difference){ //do something
}
I hope this will help you, sorry for bad english.