How can i get difference between two dates?
I have two dates, startDate and endDate.
I want difference in the format like 1 year 2 month 4 days. Any Method for that?
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend4days leftRegister
Manav PandyaRank #166 · 14.3K reputationPosted Jan 4, 2018, 6:23 AM EST
Amit GuptaRank #190 · 12.8K reputationPosted Jan 4, 2018, 6:45 AM EST
harendra prakash111 reputationPosted Jan 4, 2018, 6:44 AM EST
harendra prakash111 reputationPosted Jan 4, 2018, 6:52 AM EST
Amit GuptaRank #190 · 12.8K reputationPosted Jan 4, 2018, 9:28 AM EST