Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Adding Months to a Date
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00236456
Message ID:
00236506
Views:
11
>>What is the best way to handle adding months to a date. My user would like me to establish a from date and a to date on a form. The from date is pretty straight forward and will always be the first day of the month (e.g 12/01/1999 or /05/01/1999). Now the tricky part is that they want me to calcualte the to date based on a variable called lead time. The lead time contains the number of months of lead time. So what is the best way to figure out the to date when we have a from date of say 12/01/1999 and the lead time is 17 months. Any help would be appreciated.
>
>Bret,
>
>Is there some problem with using GOMONTH()?

Well George you have just pointed out again that I cant remember all the functions. Once I read you reply, the DUH light came on over my head. Man I am getting too old to remember all the functions. And unfortunately the area I was looking for in the VFP help never referenced the GOMONTH as a see also.

Thanks again...
Bret Hobbs

"We'd have been called juvenile delinquents only our neighborhood couldn't afford a sociologist." Bob Hope
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform