>>>No problem and I don't care if you use or not. Woould you tell me what do you mean by "since this class returns an incorrect result"?
>>>Cetin
>>
>>
>>WITH CREATEOBJECT("age")
>>
>> .CalcAge({^1988/2/29} , {^2006/09/21 })
>>
>> CLEAR
>>
>> ? .Years , .Months , .Days
>> * CHECK with the correct definition Age = (((Birth+Y)+M)+D)
>> ? GOMONTH(GOMONTH({^1988/2/29},.Years*12),.Months)+.Days
>> * CHECK with a bad definition
>> ? GOMONTH({^1988/2/29},.Years*12+.Months) + .Days
>> ? gomonth(GOMONTH({^2006/09/21} - .Days, - .Months), - .Years *12)
>>ENDWITH
>
>18 years, 6 months and 22 days. Correct. I don't understand why you say it's a bad definition. Use pen and pencil.
>Cetin
Cetin, try this. Do it with the above - {^1988/02/29}, {^2006/09/21}
18 years, 6 months, 22 days.
Now try it with {^1988/03/01}, {^2006/09/21}
18 years, 6 months, 20 days
It should only be 1 day less than the first attempt, not 2 days.