Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Counting Days
Message
 
To
16/10/2000 14:53:20
Erin Eby
Mission Critical Software
Gainesville, Florida, United States
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00429936
Message ID:
00429963
Views:
17
Erin,

Something like this:

***count number of weeks and add or subtract for days that fall in the
***middle of the week

lworkdays=(year(lenddate)*52+week(lenddate,2,3)-;
year(lstartdate)*52+week(lstartdate,2,3))*5-;
(5-dow(lenddate,2))-; &&if lastday isn't friday
(dow(lstartdate,2)+1) &&if first day isn't monday

My math might be a little off, but this should give you the general idea.
Previous
Reply
Map
View

Click here to load this message in the networking platform