PayPal complete date format
<p>PayPal send back the payment_date field in the following format 19:19:09 Sep 27, 2011</p>

<p>I am using php to calculate days remaining from payment_date, but my code is based on getting the format in 2011-09-27 12:19:00. </p>

<p>How do I change?</p>

<p>This is my code (which works perfectly if date in my correct format):</p>

<pre><code>&lt;?php       
$today = time();
$cdate = strtotime('2011-09-27');//strtotime($row_details['payment_date']);// testing
$dateDiff = $today - $cdate;
$fullDays = floor($dateDiff/(60*60*24));
$dayscalculate = 30 - $fullDays; // Set number of days
echo  $dayscalculate.(($dayscalculate == 1) ? " day" : " days");
?&gt;  
</code></pre>

<p>Thank you</p>
