Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Adding to a date
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00006132
Message ID:
00006462
Vues:
45
>>>I have a program which scans a table and creates a new table from information listed in the first table. This program needs to calculate an expiration date which is six months from the validation date. I have tried something to this effect:
>>>
>>>exp_date = val_date + 180
>>>
>>>when this expression is put after a '?' command, the correct date is printed. However, when I try to store this in the database, all I get is ' / / '
>>>
>>>Any suggestions?
>>
>>Craig
>>
>>Check your data types. There is a BIG difference between Date & DateTime types.
>>
>>HTH,
>>Tom
>
>
>Actually, Tom, we both overthought the problem. I forgot to add "m." before the variable name. ;-<

Craig

Whats this 'WE' stuff Kingmosobee? (BG)

Tom
Tom
--------------------------------
Tom O'Hare
407-299-4268 -- tom@redtile.com -- http://www.redtile.com/
Independent Programmer Using Visual FoxPro, Visual Basic & more...
Operations Manager -- Virtual FoxPro User Group (VFUG)
http://www.vfug.org/ -- tom@vfug.org
President -- Central Florida FoxPro User Group (CFFUG)
http://www.redtile.com/foxpro/
Universal Thread Most Valued Professional (MVP)
http://www.transformation.com/foxpro/
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform