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 යන අගය ලබා දෙයි.
උදාහරණය:
Sub ExampleDay
Print "Day " & Day(DateSerial(1994, 12, 20)) & " of the month"
End Sub