How to get days , months , years between two dates with groovy
I've a table that contains Start Date and End Date and I want to get the difference between then in this format 2 days , 1 moth , 1year
Can I make this with Groovy
I've added a transient attribute to a view object and make its value return (EndDate) - (StartDate); but this returns the difference of days like 200 day
I want it in this format 2 days , 1 moth , 1year