Day Function

Returns a value that represents the day of the month based on a serial date number generated by DateSerial or DateValue.

āļšāˇāļģāļš āļģāˇ“āļ­āˇ’āļē:


Tan (āļ…āļ‚āļšāļē)

āļ†āļ´āˇƒāˇ” āļŊāļļāˇāļ¯āˇ™āļą āļ…āļœāļē:

Integer

āļ´āļģāˇāļ¸āˇ’āļ­āˇ“āļąāˇŠ:

Number:āˇ€āˇƒāļģāˇš āļ¸āˇāˇƒāļē āļ­āˇ“āļģāļĢāļēāļ§ āļēāˇœāļ¯āˇāļœāˇāļąāˇ™āļą āˇāˇŠâ€āļģāˇšāļĢāˇ’āļœāļ­ āļ¯āˇ’āļąāļēāˇš āļ…āļ‚āļšāļē āļ…āļŠāļ‚āļœāˇ” āˇƒāļ‚āļ›āˇŠâ€āļēāˇāļ­āˇŠāļ¸āļš āļ´āˇŠâ€āļģāļšāˇāˇāļąāļē.

This function is basically the opposite of the DateSerial function, returning the day of the month from a serial date number generated by the DateSerial or the DateValue function. For example, the expression


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

41 āļēāļą āļ…āļœāļē āļŊāļļāˇ āļ¯āˇ™āļēāˇ’.

Error codes:

5 Invalid procedure call

āļ‹āļ¯āˇāˇ„āļģāļĢāļē:


Sub ExampleDay
    Print "Day " & Day(DateSerial(1994, 12, 20)) & " of the month"
End Sub

Please support us!