Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to Calculate the number of day between two date?
Message
De
27/12/2004 10:45:35
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00972333
Message ID:
00972357
Vues:
14
>>>
? ldDate1 - ldDate2
>>>
>>>
>>>>
>>>> Could you tell how to calculate the number of day between two date?
>>>>
>>shouldn't it be
>>
>>? ldDate2 - ldDate1
>>
>>
>><s>
>>
>Peter,
>
>If you want to get negative number, sure. <eg>

lddate1=DATE()-100 && some time in the past
lddate2=DATE() && todate

?lddate1-lddate2
-100
?lddate2-lddate1
100 <---- that the correct answer usually date1 is earlier in history that date2

<s>

Peter
Peter Cortiel
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform