Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Add Work days to a date
Message
 
 
To
02/04/2007 11:46:20
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01211326
Message ID:
01211337
Views:
17
>>Hi All
>>
>>Anyone have a good program to add the number of workdays to a date without looping through the dates? I am not worried about holidays and such. Just Monday through Friday.
>>
>>Thanks.
>
>Something like this:
>
>Function addworkdays
>Lparameters dStartdate,nAdddaysnumber
>Return dStartdate+7*floor(nAdddaysnumber/5)+MOD(nAdddaysnumber,5)
>
http://forum.foxclub.ru/read.php?29,257314,257923#msg-257923 <g>
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform