Month Function

DateSerial හෝ DateValue ශ්‍රිතයකින් ජනනය කල ශ්‍රේණිගත දිනයකින් වසරේ මාසය ආපසු ලබාදෙයි.

කාරක රීතිය:


Month (Number)

ආපසු ලබාදෙන අගය:

Integer

පරාමිතීන්:

Number:වසරේ මාසය තීරණයට යොදාගැනෙන ශ්‍රේණිගත දිනයේ අංකය අඩංගු සංඛ්‍යාත්මක ප්‍රකාශනය.

This function is the opposite of the DateSerial function. It returns the month in the year that corresponds to the serial date that is generated by DateSerial or DateValue. For example, the expression


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

returns the value 12.

Error codes:

5 Invalid procedure call

උදාහරණය:


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

Please support us!