RETAIL_ADD_X_PERIODS

Syntax

Description of the illustration retail_add_x_periods_fn.gif

Purpose

These functions add (or subtract if interval is negative) a given number of periods from the given date based on the Gregorian calendar.

RETAIL_ADD_YEARS adds or subtracts the given number of years, where a year is always defined as a period of 12 months.

RETAIL_ADD_QUARTERS adds or subtracts the given number of quarters, where a quarter is always defined as a period of 3 months.

RETAIL_ADD_MONTHS This is defined similarly as the FISCAL_ADD_MONTHS . This will return the corresponding day (by position) within the target month, and follow the same rule as above where if the given date is the last day of the month or if the resulting month has fewer days, the last day of the resulting month is used.

RETAIL_ADD_WEEKS adds or subtracts the given number of weeks, where a week is always defined as a period of 7 days.

RETAIL_ADD_DAYS simply adds or subtracts the given number of days.