Month Function

DateSerial λ˜λŠ” DateValue ν•¨μˆ˜λ₯Ό μ‚¬μš©ν•˜μ—¬ μƒμ„±ν•œ 연속 λ‚ μ§œμ—μ„œ 월을 κ΅¬ν•©λ‹ˆλ‹€.

ꡬ문:


Month (Number)

λ°˜ν™˜ κ°’:

Integer

맀개 λ³€μˆ˜:

Number: 월을 κ²°μ •ν•˜λŠ” 데 μ‚¬μš©λ˜λŠ” 연속 λ‚ μ§œ 번호λ₯Ό ν¬ν•¨ν•˜λŠ” 숫자 μ‹μž…λ‹ˆλ‹€.

이 ν•¨μˆ˜λŠ” DateSerial ν•¨μˆ˜μ™€ λ°˜λŒ€μž…λ‹ˆλ‹€. 이 ν•¨μˆ˜λŠ” DateSerial λ˜λŠ” DateValueκ°€ μƒμ„±ν•œ 연속 λ‚ μ§œμ— ν•΄λ‹Ήν•˜λŠ” 월을 κ΅¬ν•©λ‹ˆλ‹€. 예λ₯Ό λ“€μ–΄,


Print Month(DateSerial(1994, 12, 20))

κ°’ 12λ₯Ό κ΅¬ν•©λ‹ˆλ‹€.

Error codes:

5 잘λͺ»λœ ν”„λ‘œμ‹œμ € ν˜ΈμΆœμž…λ‹ˆλ‹€.

예:


Sub ExampleMonth
    MsgBox "" & Month(Now) ,64,"The current month"
End Sub

Please support us!