title: Calculate months, years and days between two given dates as timestamp
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/676824/how-to-calculate-the-difference-between-two-dates-using-php">How to calculate the difference between two dates using PHP?</a><br>
    <a href="https://stackoverflow.com/questions/1083955/how-to-get-difference-between-two-dates-in-year-month-week-day">How to get difference between two dates in Year/Month/Week/Day?</a>  </p>
  </blockquote>
  
  
  
  <p>i am trying to calculate years and months and days between two given dates in PHP.</p>
  
  <p>i am also using timestamp of those date. is there any way to calculate years and months and</p>
  
  <p>days from difference of those time stamp.</p>
  
  <p>for example first date is 2 Jan, 2008. and second one is 5 July, 2012.
  and result is 4 Years 5 monts and 3 days. </p>
  
  <p>i am working on timestamp as date input and want to know that is there any function available which directly calculate above things by two input timestamp</p>