Method: Day for VBS
- Updated2024-09-12
- 1 minute(s) read
Methods > Method: Day for VBS
Method: Day for VBS
Specifies the day of the month.
vDay = Object.Day(Date)
| Object | VBS Object with this method. You do not need to specify this object. |
| Date | Variant Specifies the date. |
| vDay | Variant Receives the day of the month. |
The following example displays the current day of the month:
Dim Myvar MyVar = Day(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