I have the following code:
var datesMove = (newState.Milestone- oldState.Milestone).TotalDays;
that shows me the number of days between two dates.
This works fine but i am displaying this on a webpage and instead of showing
Date Move: 43 days:
My Users have asked to see something like: 1 month 3 days or 1 year, 3 months and 2 days.
Is there any helper function built in that takes the difference in dates and displaying it in the highest level of aggregation possible like my examples above?