>The number of whole years between two dates:
>
>INT((VAL(DTOS(ldLate + 1)) - VAL(DTOS(ldEarly)))/10000)
>
>It doesn't depend on SET DATE, etc.
>
Hi Vlad,
Well, I was writing the code as an exercise in problem solving regarding dates, and I wanted (for some reason known only deep in my mind) to rely totally on the VFP functions that directly return numeric values from the dates or date comparisons. I will, however, keep the above in mind. Thanks.
George
Ubi caritas et amor, deus ibi est