Views PHP filter criteria not working
It will remove the rows, when you return FALSE:

if (arg(0) == 'node' &amp;&amp; is_numeric(arg(1)) &amp;&amp; ! arg(2)) {
  $node = node_load(arg(1));
  $a1 = format_date($node-&gt;created, 'custom', 'm/d/Y');
  $a2 = date('m/d/Y',strtotime('-2 months',strtotime($a1)));  
  $a3 = format_date($row-&gt;created, 'custom', 'm/d/Y');

  $b1 = new DateTime($a1);
  $b2 = new DateTime($a2);
  $b3 = new DateTime($a3);

  if ($b3 &gt;= $b2 &amp;&amp; $b3 &lt;= $b1) {
    return FALSE;
  }
  else {
    return TRUE;
  }
}