Basically, you just want to find the difference between the date entered and the current date?
function ifNew($date, $def_new)
{
list($year, $month, $day) = preg_split('#[/.-]#', $date);
$date_stamp = mktime(0, 0, 0, $month, $day, $year);
if (abs($date_stamp - mktime(0, 0, 0)) <= (60 * 60 * 24 * 5))
{
return $def_new;
}
else
{
return "";
}
}