How to Find the Number of Weekdays Between Two DatesID: Q114354 2.5x 2.6x 3.00 | 2.5x 2.6x | 2.5x 2.60a
The information in this article applies to:
SUMMARYThis article describes how to programmatically determine the number of weekdays between and including a start date and an end date.
MORE INFORMATION
Code Example
Save the program as WEEKDAYS.PRG. To call it, issue the command:
The answer displayed in the active window should be 98.
NOTE: This program doe not check for invalid dates, such as {2/30/61}. Additional reference words: VFoxWin 3.00 FoxMac FoxDos FoxWin 2.50 2.50a 2.50b 2.50c 2.60 2.60a KBCategory: KBSubcategory: FxprgGeneral
|
Last Reviewed: May 22, 1998 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |