Method: Month for VBS
- Updated2024-09-12
- 1 minute(s) read
Methods > Method: Month for VBS
Method: Month for VBS
Specifies the month as an integer number.
vMonth = Object.Month(Date)
| Object | VBS Object with this method. You do not need to specify this object. |
| Date | Variant Specifies the date. |
| vMonth | Variant Receives an integer number in the range between 1 and 12 that represents the month of the year. |
The following example returns the current month:
Dim MyVar MyVar = Month(Now) Call MsgBox(MyVar)
See Also
Related Topics
DateAdd | DateDiff | DatePart | DateSerial | DateValue | Date | Day | Hour | Minute | MonthName | Month | Now | Second | TimeSerial | TimeValue | Time | Timer | Weekday | WeekdayName | Year