AddDate()
Syntax
Date = AddDate(Date, Range, Value)Description
Add a value to a date. The 'Range' 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 dateExample:Debug FormatDate("%yyyy/%mm/%dd", AddDate(Date(), 0, 2)) ; Returns the current date + 2 years
Supported OS
Windows, Linux, MacOS X