FT_WORKDAYS

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

 

One response to “FT_WORKDAYS

  1. Pingback: FT Date-Time | Viva Clipper !

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.