Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Date math on Datetime()
Message
De
04/06/2003 09:04:06
Cindy Winegarden
Duke University Medical Center
Durham, Caroline du Nord, États-Unis
 
 
À
04/06/2003 07:54:19
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00796076
Message ID:
00796114
Vues:
18
>>>Have 2 fields in a report - Binddate and Binddate + 30.

>>
>> Binddate + (30*24*3600)
>>
Hi Gaylen,

Addition and subtraction apply to days with date data types and seconds with datetime data types.

From the "Date and Time Operators" topic in Help:
Date and Time Operators

Operator Action Code 
+   Addition       tNewTime = tTime1 + nSeconds
                   dNewDate = dDate1 + nDays
 
-   Subtraction    nSeconds = tTime1 - tTime2
                   tNewTime = tTime1 - nSeconds
                   dNewDate = dDate1 - nDays
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform