DIAdem Help

Method: Month for VBS

  • Updated2024-09-12
  • 1 minute(s) read

Method: Month for VBS

Specifies the month as an integer number.

vMonth = Object.Month(Date)
ObjectVBS
Object with this method. You do not need to specify this object.
DateVariant
Specifies the date.
vMonthVariant
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)

Related Topics

DateAdd | DateDiff | DatePart | DateSerial | DateValue | Date | Day | Hour | Minute | MonthName | Month | Now | Second | TimeSerial | TimeValue | Time | Timer | Weekday | WeekdayName | Year