## convert a number of days to years, months & days

### convert a number of days to years, months & days

I have determined the number of days between 2 dates. Now, how do I convert
the number of days to years, months & days?

### convert a number of days to years, months & days

I assume you know the dates, so you can use the Global method yearDiff to
figure out the number of years between the two days.

You also ask about the number of days, but you start by stating you know the
number of date!? Anyway by extracting the dates from each other you get the
number of dates between the two dates: date1 - date2 = numOfDays.

I don't know about the number of months. Maybe you can find something in
.NET to calculate this.
--
Best Regards,
Palle Agermark
http://www.yqcomputer.com/
http://www.yqcomputer.com/

### convert a number of days to years, months & days

Sorry, I now figured out exectly what you meant by converting the number of
days to years, months and day.

I'd try to look into .NET to see if you can a function here...
--
Best Regards,
Palle Agermark
http://www.yqcomputer.com/
http://www.yqcomputer.com/