thechazm
VBA, VB.net, C#, Java
- Local time
- Today, 18:04
- Joined
- Mar 7, 2011
- Messages
- 515
Good Day All,
I am looking for a little help on creating an good solution for calculating out someones experience based on a specific start date.
I've created some code to start the process but it's still not quite right. Here is the code:
Any input/help is greatly appreciated.
I am looking for a little help on creating an good solution for calculating out someones experience based on a specific start date.
I've created some code to start the process but it's still not quite right. Here is the code:
Code:
' Format Experience field
eYears = DateDiff("yyyy", rs("Experience"), evalDate)
eMonths = DateDiff("m", rs("Experience"), DateAdd("yyyy", eYears * -1, evalDate))
eMonths = Abs(eMonths)
evalDate = DateAdd("yyyy", eYears * -1, evalDate)
eDays = DateDiff("d", rs("Experience"), DateAdd("m", eMonths * -1, evalDate))
eDays = Abs(eDays)
Experience = eYears & " years, " & eMonths & " months, " & eDays & " days"
Any input/help is greatly appreciated.