Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
New WEEKDAYS function.
Message
From
21/08/2003 11:19:49
Walter Meester
HoogkarspelNetherlands
 
 
To
21/08/2003 07:36:34
Walter Meester
HoogkarspelNetherlands
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00821896
Message ID:
00822214
Views:
21
Hi Mike,

The revised VFP version:
LPARAMETERS dDate1, dDate2
LOCAL nDays

nDays = ABS(dDate1-dDate2)+1

RETURN nDays - INT(nDays/7)*2 - SIGN(EVL(DOW(MIN(dDate1,dDate2),2)-7, -EVL(nDays % 7,7)) + (nDays % 7)) -1 
Previous
Reply
Map
View

Click here to load this message in the networking platform