Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How do I add months to a date?
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00667115
Message ID:
00667117
Views:
24
>Hi,
>I have to allow a user to the number of months to add to a stored date at processing time. That number is stored in a number field until the processing. How do I write the code to add that number of months to the date (which is in a date field)?
>Thanks
>Sylvia

mydate=GOMONTH(mydate,+months) - add months
mydate=GOMONTH(mydate,-months) - go back months
Pablo Roca
Clavo Congelados, S.A. (La Coruna - Spain)
Sysop of PortalFox

Join MasFoxPro campaign
http://www.masfoxpro.com
Previous
Reply
Map
View

Click here to load this message in the networking platform