How can I get an integer for the amount of day difference between two dates?
<p>Ok, I've got some code (I think it may be messy and redundant in places - note, it's about the Presidential election, to see which candidate is doing better, hence the Romney's):</p>

<pre><code>$romneytime = intval($twitromney["timestamp"]);
$romneydate = date('m/d/Y', $romneytime);
$romlinearray = array();
$romlinearray["date"] = null;
$romlinearray["value"] = null;
$romneydiffobj = date_diff(date_create_from_format('m/d/Y', $dateromney),  date_create_from_format('m/d/Y', $romneydate));
$romneydiff = $romneydiffobj-&gt;format('%d')

var_dump($romneydiff);
</code></pre>

<p>For some reason, <code>var_dump($romneydiff);</code> isn't putting out any data.</p>

<p>The code should be taking the integer of a time stamp, putting it into date format, and then comparing it with another date, and then outputting the difference of the two dates.</p>
