DateAdd Function
Aldonas intertempon al donita dato plurfoje kaj liveras la rezultan daton.
Sintakso:
DateAdd (Add, Count, Date)
Liverota valoro:
Varianto enhavanta daton.
Parametroj:
Add - A string expression from the following table, specifying the date interval.
|
Aldoni (ĉena valoro) |
Klarigo |
|
jjjj |
Jaro |
|
q |
Kvaronjaro |
|
m |
Monato |
|
y |
Tago de la jaro |
|
w |
Semajntago |
|
ss |
Semajno de la jaro |
|
d |
Tago |
|
h |
Horo |
|
n |
Minuto |
|
s |
Sekundo |
Count - A numerical expression specifying how often the Add interval will be added (Count is positive) or subtracted (Count is negative).
Date - A given date or the name of a Variant variable containing a date. The Add value will be added Count times to this value.
Ekzemplo:
Sub example_dateadd
MsgBox DateAdd("m", 1, "1/31/2004") &" - "& DateAdd("m", 1, "1/31/2005")
End Sub