Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- GT_LIB v1.0 Reference Guide Release 1.0 - <b>take a date and add days, months and years to it</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 Take a date and add days, months and years to it
------------------------------------------------------------------------------

 Syntax

        GT_DateAdjust(<dDate>,<nDays>],[<nMonths>],[<nYears>]) -> dReturn

 Arguments:

      <dDate> is a date value to which the values are
      added.

      <nDays> is the number of days to add to <dDate>.

      <nMonths> is the number of months to add to <dDate>.

      <nYears> is the number of years to add to <dDate>.

 Returns:

      GT_DateAdjust() always returns a legal date.

 Description:

      Function to take a date and add days, months and
      years to it, returning the new date.

 Examples:

      // Same date next month
      dDate := GT_DateAdjust(DATE(),0,1,0)

      // Same date a year tomorrow
      dDate := GT_DateAdjust(DATE(),1,0,1)

 Source: GT_DATEA.PRG

 Author:  Martin Bryant

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