Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Working days between 2 dates
Message
From
23/02/2007 10:11:28
 
 
To
22/02/2007 23:06:39
Mike Yearwood
Toronto, Ontario, Canada
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01198129
Message ID:
01198304
Views:
7
Sorry, I looked in my calendar, but entered 2006 year instead of 2007. No questions.

Regards,
Sergey


Hi Mike,

Maybe I don't understand something, but why your functions, including the "new version", give the next result?

?WeekDays({^2006/02/02},{^2006/02/09}) &&prints 6
?WeekDays({^2006/02/03},{^2006/02/10}) && 6
?WeekDays({^2006/02/04},{^2006/02/11}) && 5
?WeekDays({^2006/02/05},{^2006/02/12}) && 5

Regards,
Sergey

>>Does anyone have a function to get the number of working days between 2 dates? I'm working on a simple one, but thought someone might have one.
>
>Hi Wayne
>
>As that routine is so pervasive it is important that it not be negatively affected by conflicts between your field naming conventions and its memory variable naming conventions. I've added m. to local variables and commented it thoroughly.
>
>http://fox.wikis.com/wc.dll?Wiki~Weekdays~VFP
Previous
Reply
Map
View

Click here to load this message in the networking platform