title: How can I subtract 2 dates from one another?
body: <p>I want to subtract a date in the future from todays date, I want it to display both the day, hour and minutes until the target date.</p>
  
  <p>Here is my code</p>
  
  <pre><code>&lt;?php
  
  date_default_timezone_set('Europe/London');
  
  $format = "h:i d";
  $date = date($format);
  $target = date($format, mktime(0,0,0,12,8,2011));
  
  echo date($format, $target-$date);
  
  ?&gt;
  </code></pre>
  
  <p>Kind regards,
  Adam</p>