How to calculate the date difference between 2 dates using php

Posted by gnanesh on Stack Overflow See other posts from Stack Overflow or by gnanesh
Published on 2009-03-24T10:33:07Z Indexed on 2010/03/18 19:11 UTC
Read the original article Hit count: 407

Filed under:
|
|

Hi,

I have to dates of the form

Start Date: 2007-03-24 End Date: 2009-06-26

Now I need to find the difference between these two in the below form:

2 years, 3 months and 2 days

Can someone please help me with this

© Stack Overflow or respective owner

Related posts about php

Related posts about datetime