Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Years and months between two dates
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00160317
Message ID:
00161823
Vues:
24
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform