hi - started this, thinking it was really simple but now am stuck
have a users start date dd/mm/yyyy and want to calculate the years and days to todays date.
have tried the following which looked like it was working
have a users start date dd/mm/yyyy and want to calculate the years and days to todays date.
have tried the following which looked like it was working
Code:
'works out difference in days
userlength = datediff("d",userstartdate, date)
'days left over after taking out years
userlengthdays = (userlength MOD 365)
'works out number of years
userlengthyears = cint(datediff("YYYY", userstartdate, date))