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