ClassMicrosoft.VisualBasic.DateAndTime SyntaxDim result As Integer = Day(dateValue)
DescriptionThe Day function returns a value from 1 to 31, representing the day of the month of the supplied date. Usage at a GlanceWith Option Strict set to On, the source value must first be converted to a Date data type. You can use the CDate function for this purpose. The IsDate function can also be used to confirm that the source expression is a valid date. See AlsoDatePart Function, Month Function, WeekdayName Function, Year Function |