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
Pingback: FT Date-Time | Viva Clipper !