DateValue Function

ཚེས་གྲངས་ཡིག་རྟགས་ཕྲེང་བ་གྲངས་ཀར་བརྗེ་འགྱུར་བྱེད། ཚེས་གྲངས་ཡིག་རྟགས་ཕྲེང་ནི་རྣམ་གཞག་ནི་རྐྱང་པའི་གྲངས་ཐང་གི་འཐུས་ཚང་གི་ཚེས་གྲངས་ཡིན། རིམ་སྟར་གྲངས་འདི་ཡང་ཚེས་གྲངས་གཉིས་བར་གྱི་ལྷག་གྲངས་གཏན་འཁེལ་བྱེད་པར་སྤྱོད།

བརྡ་འཕྲོད་

DateValue [(date)]

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

ཚེས་གྲངས་

ཁུགས་གྲངས་

Date: String expression that contains the date that you want to calculate. In contrast to the DateSerial function that passes years, months and days as separate numeric values, the DateValue function requests the date string to be according to either one of the date acceptance patterns defined for your locale setting (see Tools - Options - Language Settings - Languages) or to ISO date format (momentarily, only the ISO format with hyphens, e.g. "2012-12-31" is accepted).

Error codes:

5 ནུས་མེད་ཀྱི་བརྒྱུད་རིམ་འཁོར་སྤྱོད་

དཔེ་གཞི་

Sub ExampleDateValue

    MsgBox DateValue("12/02/2011")

End Sub