Mike Yearwood
Toronto, Ontario, Canada
You mean if the child isn't 1 yet? I'd call that 0 years ;) My code was *designed* that way ;)
>Mike,
>
>This method fails for young people on their birthday. There may be other scenarios that will give incorrect results also...
>
>And yes, the spec itself was a little vague :)
>
>>LPARAMETERS tdB,tdD
>>RETURN INT((tdD-tdB)/365.25)
>>
>>This doesn't check if the birthdate is lower than the date specified in tdD. If doesn't check if the parameters are date or datetime. You need to make SPEC ifications not SPECK ification <g>.
>>
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only