i think the easiest way to do it is with unix timestamp..
if you are storing the date in another format, use the mktime function (more information php.net/mktime) to transform in unix timestamp:
$classified_date = mktime(h,m,s,M,D,Y);
$now = time();
$expire_time = 30 24 60 * 60; // (days,hours,...)
// course you can use directly the number of seconds passed in 30 days: 2592000
if ($classified_date > $now - $expire_time) {
// show it.. it isn't expirated.
}
i hope it's rigth, bcause i hadn't test it.. 🙂
ic