FT Date-Time

 FT_ACCTADJ()     Adjust beginning or ending fiscal pd. dates to acctg. dates
 FT_ACCTMONTH()   Return accounting month data
 FT_ACCTQTR()     Return accounting quarter data
 FT_ACCTWEEK()    Return accounting week data
 FT_ACCTYEAR()    Return accounting year data
 FT_ADDWKDY()     Return true number of days to add given number of workdays
 FT_CALENDAR()    Display date/time calendar, find a date, return calendar data.
 FT_CIV2MIL()     Convert usual civilian format time to military time.
 FT_DATECNFG()    Set beginning of year/week for FT_ date functions
 FT_DAYOFYR()     Return calendar, fiscal or accounting day data
 FT_DAYTOBOW()    Calculate no. of days between date and beginning of week
 FT_DOY()         Find number of day within year
 FT_EASTER()      Return the date of Easter
 FT_ELAPMIN()     Return difference, in minutes, between two mil format times.
 FT_ELAPSED()     Return elapsed time between two days and/or times
 FT_ELTIME()      Compute difference between times in hours, minutes, seconds.
 FT_FDAY()        Return first day of the month
 FT_LDAY()        Return last day of the month
 FT_MADD()        Add or subtract months to/from a date
 FT_MIL2CIV()     Convert time in military format to civilian format.
 FT_MIL2MIN()     Convert time in military format to number of minute of day.
 FT_MIN2DHM()     Convert numeric minutes to days, hours and minutes.
 FT_MIN2MIL()     Convert minute of day to military format time.
 FT_MONTH()       Return Calendar or Fiscal Month Data
 FT_QTR()         Return Calendar or Fiscal Quarter Data.
 FT_SYS2MIL()     Convert system time to military time format.
 FT_WEEK()        Return calendar or fiscal week data
 FT_WORKDAYS()    Return number of work days between two dates
 FT_WOY()         Find number of week within year
 FT_YEAR()        Return calendar or fiscal year data

FT_MADD

FT_MADD()
 Add or subtract months to/from a date

 Syntax

      FT_MADD( [ <dGivenDate> ], [ <nAddMonths> ], [ <lMakeEOM> ] )
          -> dDate

 Arguments

     <dGivenDate> is any valid date in any date format. Defaults to
     current system date if not supplied.

     <nAddMonths> is the number of months to be added or subtracted.
     Defaults to 0 if not supplied.

     <lMakeEOM> is a logical variable indicating whether or not to
     force the returned date to the last date of the month.  It only
     affects the returned date if <dGivenDate> is an end-of-month date.

 Returns

     A date.

 Description

     FT_MADD() adds or subtracts months to/from a given date.

     If MakeEOM is passed and dGivenDate is the last day of a month,
     it will return the EOM of calculated month.  Otherwise it will
     return the same day as the day of the passed date.

 Examples

     dDate := CTOD( "09/15/90" )
     ? FT_MADD( dDate, 1 )        // 10/15/90
     ? FT_MADD( dDate, -2 )       // 07/15/90

     // force EOM
     dDate := CTOD( "04/30/91" )
     ? FT_MADD( dDate, 1 )        // 05/30/91
     ? FT_MADD( dDate, 1, .T. )   // 05/31/91  <- forced EOM
     ? FT_MADD( dDate, 2 )        // 06/30/91
     ? FT_MADD( dDate, 2, .T. )   // 06/30/91  <- June only has 30 days
     ? FT_MADD( dDate, 3 )        // 07/30/91
     ? FT_MADD( dDate, 3, .T. )   // 07/31/91  <- forced EOM

 Source: MADD.PRG

 Author: Jo W. French dba Practical Computing

See Also: FT_DAYOFYR() FT_DAYTOBOW()