>I need to count the number of weekdays between two dates. What is the best method?
>
>For example, how many days are there between 01/01/2004 and 04/03/2004 excluding all weekends? Is there a VFP function to assist in this?
>
>Thanks in advance!
>
>Greg
For speed, how about getting an integer number of weeks, and multiply by 5/7. Then, for the remaining days (should be between 0 and 6), use Borislav's or Fabian's function.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)