DateAdd Function

དུས་ཚོད་ཚུ་གི་ཨང་ཅིག་གྲ་སྒྲིག་ཚེས་ལུ་ཚེས་བར་མཚམས་ཅིག་ཁ་སྐོང་འབད་ནི་ནང་ ཚེས་འབྱུང་མི་དེ་སླར་ལོགཔ་ཨིན།

ཚིག་སྦྱོར:

ཚེས་ཁ་སྐོང་རྐྱབས (Add, Count, Date)

གནས་གོང་སླར་ལོག:

ཚེས་གྲངས་ཅིག་ཡོད་པའི་ཁྱད་དངོས།

ཚད་བཟུང་ཚུ་:

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

ཁ་སྐོང་ (ཡིག་རྒྱུན་གནས་གོང་།)

འགྲལེལ་བཤད།

ཝའི་ཝའི་ཝའི་ཝའི།

ལོ།

q

དཔྱ་གསུམ།

m

ཟླ།

y

ལོའི་ཉིནམ།

w

བདུན་ཕྲག་ཉིནམ།

ཌབ་ལུ་ཌབ་ལུ།

ལོའི་བདུན་ཕྲག

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