Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Date Calculation
Message
 
 
To
02/01/2007 15:33:00
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows 2000 SP4
Network:
Windows 2000 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01181507
Message ID:
01181549
Views:
9
>Hi Naomi,
>
>The codes from the link that you gave me calculates for the whole week including the weekends. Is there a way just to calculate the weekdays (Monday thru Friday only)? Please help.
>
>Thanks,
>Sam

I'm not sure then what your question is. This function calculates number of weekdays (excluding Sundays and Saturdays) between two dates. I quickly tested it on several dates and it seems to work correctly. If you want to include Holidays into your calculation then the function would be a bit more complex.
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform