Vb.DateAdd (gb.vb)

Static Function DateAdd ( period As String, interval As Integer, Date As Date ) As Date

Returns a Date to which a specified time interval has been added.

Period is a string expression that is the interval of time you want to add.

Period Description
yyyy سنة
q ربع سنة
m شهر
y يوم من السنة
d يوم
w Week day - Note: A week day is Monday to Friday in Gambas. This is different to VB in which w = d
ww أسبوع
h ساعة
n دقيقة
s ثانية

Interval is the number of intervals you want to add. It can be positive (to get dates in the future) or negative (to get dates in the past).

Date is a Date or literal representing the date to which the interval is added.