Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Date manipulation
Message
 
 
To
06/10/2002 22:43:55
Ian Johnston
Computer Software Solutions
Woodland, California, United States
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00708259
Message ID:
00708260
Views:
9
>Is there an easy way to find the date that is the last day of the month nine full nonths from now ? i.e. 07/31/03 from any day in october this year.
Try
ldDate = DATE()
ldDate9m = GOMONTH(ldDate,9)
? GOMONTH(ldDate9m - DAY(ldDate9m )+1,1)-1
* or
? GOMONTH(ldDate - DAY(ldDate )+1,10)-1
--sb--
Previous
Reply
Map
View

Click here to load this message in the networking platform