Quantcast
Channel: Hot Weekly Questions - Web Applications Stack Exchange
Viewing all articles
Browse latest Browse all 9724

How to get a difference of "X years, Y months, Z days" between two dates?

$
0
0

I have two dates: 29/05/2020 and today.

How can I get a date diff of these 2 dates, in a meaningful formas such as "Z years, X months, Y days" separating these dates?

Ideally this should also take into account the number of days in each months (for example May has 31 days but June has only 30 days).

Thanks for your help!


Viewing all articles
Browse latest Browse all 9724

Trending Articles