How can i get difference between two dates?

Jan 4 2018 10:47 AM
I have two dates, startDate and endDate. I want difference in the format like 1 year 2 month 4 days. Any Method for that?

Answers (5)