DateSerial Function

Returns a Date value for a specified year, month, and day.

Syntax:


DateSerial (year, month, day)

Return value:

ཚེས་གྲངས་

Parameters:

Year ཧྲིལ་གྲངས་མཚོན་ཚུལ་གྱིས་ལོ་མཚོན། 1900-1999 བར་གྱི་ལོ་འཁོར་ནི་ 0 ནས་ 99 བར་གྱི་ལྟོས་བཅས་ཀྱི་གྲངས་ཐང་གིས་མཚོན་ཆོག་ ཁྱབ་ཁོངས་འདི་ལས་བརྒལ་བའི་ལོ་འཁོར་ནི་ངེས་པར་དུ་འཐུས་ཚང་གི་གནས་བཞིའི་གྲངས་ཀ་ནང་འཇུག་བྱེད་དགོས།

Month ཧྲིལ་གྲངས་མཚོན་ཚུལ་གྱིས་གཏན་འཁེལ་ལོ་འཁོར་ནང་གི་ཟླ་གྲངས་མཚོན། ནུས་ལྡན་ཐང་གི་ཁྱབ་ཁོངས་ནི་ 1-12ཡིན།

Day: Integer expression that indicates the day of the specified month. The accepted range is from 1-31. No error is returned when you enter a non-existing day for a month shorter than 31 days.

DateSerial རྟེན་གྲངས་གིས་ 1899 ལོའི་ཟླ་ 12 ཚེས་ 30 ཉིན་དང་སྤྲད་པའི་ཚེས་གྲངས་བར་གྱི་ཁྱད་པར་ཕྱིར་ལོག་བྱེད། དེར་བརྟེན་རྟེན་གྲངས་འདི་སྤྱད་ནས་ཚེས་དུས་གཉིས་བར་གྱི་ཁྱད་པར་གྱི་ཉིན་གྲངས་རྩིས་བརྒྱབ་ཆོག་

The DateSerial function returns the data type Variant with VarType 7 (Date). Internally, this value is stored as a Double value, so that when the given date is 1900-01-01, the returned value is 2. Negative values correspond to dates before December 30, 1899 (not inclusive).

གལ་ཏེ་མཚན་འཇོག་གི་ཚེས་གྲངས་ནུས་ལྡན་ཐང་གི་ཁྱབ་ཁོངས་ལས་བརྒལ་ན་ཧུང་ LibreOffice གིས་ནོར་འཁྲུལ་གྱི་སྙན་ཞུ་ཞིག་ཕྱིར་ལོག་བྱེད།

DateValue བརྟེན་ནས་རྟེན་གྲངས་ནང་ཚེས་གྲངས་ལྡན་པའི་ཡིག་རྟགས་ཕྲེང་བ་མཚན་འཇོག་བྱེད་ཆོག་ དེར་བརྟེན་ DateSerial རྟེན་གྲངས་ཡི་ཞུགས་གྲངས་ཁག་ (year month day) ཁེར་རྐྱང་གི་གྲངས་ཀའི་མཚོན་ཚུལ་ལ་བརྩིས་ནས་ཐང་འཚོལ་ལོ།

Error codes:

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

Example:


  Sub ExampleDateSerial
  Dim lDate As Long
  Dim sDate As String
      lDate = DateSerial(1964, 4, 9)
      sDate = DateSerial(1964, 4, 9)
      msgbox lDate REM ཕྱིར་ལོག་ 23476
      MsgBox sDate ' returns 1964-04-09 in ISO 8601 format
  End Sub

Please support us!