Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Figuring out weekdays
Message
From
15/06/1999 08:42:48
Mark Hall
Independent Developer & Voip Specialist
Keston, Kent, United Kingdom
 
 
To
14/06/1999 10:30:34
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00229423
Message ID:
00229899
Views:
21
>Can anyone tell me an easy way to take out weekends when counting days
>Thanks
>James

Here's a one liner, but it requires the two dates to be weekdays.

? d2-d1 - 2*INT((d2-d1)/7) - 2*IIF(dow(d2, 2) .Signature { margin-top: 12px; color: #666666; } .Signature a { color: #666666; }
Regards
Mark

Microsoft VFP MCP
Menulib - OO Menus for VFP www.hidb.com/menulib
Previous
Reply
Map
View

Click here to load this message in the networking platform