Day Function In VB.NET
How to use Day Function?
Explanation
Day Function
Day Function in Visual Basic.net 2008, returns the day of the month from the Date value passed as an Integer.
Syntax:
Day(Date)
Example:
Module Module1
Sub Main()
Console.WriteLine("Day value for the current date
is::" & Day(Now))
Console.ReadLine()
End Sub
End Module
Result:
22
In the above Day Function example, the date information is passed as an argument, so that the day value alone
is returned.