How to get number of years, months and days from number of days?

How to get number of years, months and days from number of days?

  
How to create an expression that calculates the difference in YEARS, MONTHS and DAYS between two dates in the record list. So far I got a value expresed in DAYS with "diffDays" command, but i dont know how to convert value in "number of years, number of months, number of days" format. Is there any command like "diffYeras" or "diffMonths" or something like "datedif" in MS Excell?
Hi, Milos.

There's no built-in function to return want you want.

Please take a look at this post:
http://www.outsystems.com/NetworkForums/ViewTopic.aspx?Topic=Format-Date-for-high-value-dates#Post2

 I hope it helps!