Month(Date) : Month « Excel « VBA / Excel / Access / Word






Month(Date)

 
Sub Main5()
   Debug.Print "Today's date is: " & Date
   Debug.Print "The month is: " & Month(Date)
End Sub

 








Related examples in the same category

1.Month(date) returns a Variant/Integer between 1 and 12, inclusive, representing the month for date
2.Month("Feb 4, 1900") returns 2