LibreOffice 25.2 Help
Returns a Date value for a specified year, month, and day.
DateSerial (year, month, day)
λ μ§
Year: μ°λλ₯Ό λνλ΄λ μ μ μμ λλ€. 0μμ 99 μ¬μ΄μ λͺ¨λ κ°μ 1900-1999λ μΌλ‘ ν΄μλ©λλ€. μ΄ λ²μλ₯Ό λ²μ΄λλ μ°λμ κ²½μ° 4μ리 μ«μλ₯Ό λͺ¨λ μ λ ₯ν΄μΌ ν©λλ€.
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 Basicμ μ€λ₯ λ©μμ§λ₯Ό νμν©λλ€.
DateValue ν¨μκ° λ μ§λ₯Ό ν¬ν¨νλ λ¬Έμμ΄λ‘ μ§μ λλ λ°λ©΄ DateSerial ν¨μλ μ°λ, μ, μΌ λ±κ³Ό κ°μ κ° λ§€κ° λ³μλ₯Ό λ³λμ μ«μ μμΌλ‘ νκ°ν©λλ€.
Sub ExampleDateSerial
Dim lDate As Long
Dim sDate As String
lDate = DateSerial(1964, 4, 9)
sDate = DateSerial(1964, 4, 9)
msgbox lDate REM returns 23476
MsgBox sDate ' returns 1964-04-09 in ISO 8601 format
End Sub