DateAdd Function

གཏན་འཁེལ་གྱི་ཚེས་གྲངས་ལ་ཚེས་གྲངས་བར་ཆོད་ཐེངས་མང་གསབ་སྐོང་བྱེད་པ་མ་ཟད་སྐྱེ་གྲུབ་བྱུང་བའི་ཚེས་གྲངས་ཕྱིར་ལོག་བྱེད།

བརྡ་འཕྲོད་


DateAdd (Add, Count, Date)

ཕྱིར་ལོག་ཐང་

ཚེས་གྲངས་ཚུད་པའི་འགྱུར་གཟུགས།

ཁུགས་གྲངས་

Add - A string expression from the following table, specifying the date interval.

Add(ཡིག་རྟགས་ཕྲེང་བའི་ཐང་)

འགྲེལ་པ་

yyyy

ལོ་

q

དུས་ཚིགས་

m

ཟླ་བ་

y

ལོའི་ནང་གི་ཉིན་ཞིག་ལ་

w

ལས་ཀའི་ཉིན་

ww

ལོའི་ནང་གི་རེས་གཟའ་ཞིག་ལ་

d

ཉིན་

h

ཆུ་ཚོད་

n

སྐར་མ་

s

སྐར་ཆ་


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.

དཔེ་གཞི་


Sub example_dateadd
    MsgBox DateAdd("m", 1, "1/31/2004") &" - "& DateAdd("m", 1, "1/31/2005")
End Sub

Please support us!