Hi,One way would be to use a library like MomentJS,
https://momentjs.com/ . With this library you could write code
like;moment("2016-06-05").diff("2014-01-01", "months") for complete
monthsormoment("2016-06-05").diff("2014-01-01", "months", true) for a
fractional valuethenmoment("2016-06-05").diff("2014-01-01", "years") for
the year valueHere is an example, MonthsYearsDiff
(https://sites.google.com/site/livecycledesignercookbooks/home/MonthsYearsDiff.pdf?attredirects=0&d=1
), of using this libra...