get past day from difference 2 date
<p>i want to get how many past day from difference 2 date.</p>

<p>PHP CODE:</p>

<pre><code>$date1 = new DateTime('2013-02-20');
$date2 = new DateTime('2013-02-22');
$interval = $date1-&gt;diff($date2);
if (  $interval-&gt;days &gt;= 0)
      echo "past day:" . $interval-&gt;days . " das ";
</code></pre>

<p>result is : 2, how to get -2 ?  </p>
