Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Years and months between two dates
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00160317
Message ID:
00161823
Views:
17
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform