Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Number of months between two dates
Message
From
06/11/2002 14:23:14
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00719472
Message ID:
00719483
Views:
14
>Michel,
>
>Try something like this, I have not tested this very much, but it appears it may work.
>
>lnmonths = MONTH(enddate) + ((YEAR(enddate) - YEAR(stdate)) * 12) - MONTH(stdate)

Yes, Tracy already pointed me to a cool routine.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Previous
Reply
Map
View

Click here to load this message in the networking platform