Question
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
Bank of New Zealand
Bank of New Zealand
IN
Bank of New Zealand
Posted: Jun 12, 2017
Last activity: Jun 22, 2017
Last activity: 22 Jun 2017 19:54 EDT
Closed
How to find Months and remaining days between 2 dates
Is there any function/logic to find a Months and Days between 2 dates.
Ex:
StartDate | EndDate | Expected Result | Comments |
15/04/2018 | 15/04/2018 | 0 Months 1 Day | Count starts from Startdate as 1 day |
10/04/2018 | 15/04/2018 | 0 Months 6 Days | |
15/04/2018 | 14/08/2018 | 4 Months 0 Days | |
15/04/2018 | 20/08/2018 | 4 Months 6 Days | |
29/02/2020 | 31/03/2020 | 1 Month 3 Days | should consider Leap Years and Day Light savings period as well |