AddDate()

Syntax

Date = AddDate(Date, Field, Value)
Description
Add a value to a date. The 'Field' can be one of the following constants:
  #PB_Date_Year   : Will add 'Value' Year to the date
  #PB_Date_Month  : Will add 'Value' Month to the date
  #PB_Date_Week   : Will add 'Value' Week to the date
  #PB_Date_Day    : Will add 'Value' Day to the date
  #PB_Date_Hour   : Will add 'Value' Hour to the date
  #PB_Date_Minute : Will add 'Value' Minute to the date
  #PB_Date_Second : Will add 'Value' Second to the date
Example:
  Debug FormatDate("%yyyy/%mm/%dd", AddDate(Date(), #PB_Date_Year, 2)) ; Returns the current date + 2 years

Supported OS

All

Date Index - Date() ->