Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Nanforum Toolkit v2.1 Reference Guide - <b>ft_workdays()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 FT_WORKDAYS()
 Return number of work days between two dates
------------------------------------------------------------------------------

 Syntax

      FT_WORKDAYS( [ <dStart> ], [ <dStop> ] ) -> nDays

 Arguments

     <dStart> is the beginning value for the date range.

     <dStop> is the ending value for the date range.

 Returns

     The number of work days (Monday through Friday) between two dates.

 Description

     FT_WORKDAYS() returns a number indicating the number of work days
     between two dates.  Work days are considered Monday through Friday.
                 (The five day work week none of us Clipper programmers have.)

 Examples

    ? FT_WorkDays( CTOD("5/16/91"), CTOD("5/20/91") ) // 3  (Th - Mo)
    ? FT_WorkDays( CTOD("5/18/91"), CTOD("5/19/91") ) // 0  (Sa - Su)
    ? FT_WorkDays( CTOD("5/17/91"), CTOD("5/17/91") ) // 1  (Fr - Fr)

 Source: WORKDAYS.PRG

 Author: John F. Kaster

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson