Collabora Office 24.04 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μΌλΆν° μ§μ ν λ μ§κΉμ§μ μΌ μλ₯Ό ꡬν©λλ€. μ΄ ν¨μλ₯Ό μ¬μ©νμ¬ λ λ μ§μ μ°¨λ₯Ό κ³μ°ν μ μμ΅λλ€.
DateSerial ν¨μλ VarType 7(Date)μ΄λΌλ Variant λ°μ΄ν° νμμ ꡬν©λλ€. λ΄λΆμ μΌλ‘ μ΄ κ°μ΄ Double κ°μΌλ‘ μ μ₯λκΈ° λλ¬Έμ μ§μ ν λ μ§κ° 1.1.1900μΌ κ²½μ° λ°ν κ°μ 2μ λλ€. μμ κ°μ 1899λ 12μ 30μΌ μ΄μ (ν¬ν¨λμ§ μμ)μ λ μ§μ ν΄λΉν©λλ€.
νμ©λλ λ²μλ₯Ό λ²μ΄λλ λ μ§λ₯Ό μ§μ ν κ²½μ° Collabora Office 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 REMμ 04/09/1964λ₯Ό λ°νν©λλ€.
End Sub