Method: DateValue for VBS
- Updated2024-09-12
- 1 minute(s) read
Methods > Method: DateValue for VBS
Method: DateValue for VBS
Specifies a date with the Date subtype.
vDateValue = Object.DateValue(Date)
| Object | VBS Object with this method. You do not need to specify this object. |
| Date | Variant Specifies an expression which the DateValue method can convert into a date from the range between January 100 to December 31, 9999. |
| vDateValue | Variant Receives a date. |
The following example displays a date:
Dim MyDate MyDate = DateValue("September 30, 2011") ' Returns a date
See Also
Related Topics
DateAdd | DateDiff | DatePart | DateSerial | DateValue | Date | Day | Hour | Minute | MonthName | Month | Now | Second | TimeSerial | TimeValue | Time | Timer | Weekday | WeekdayName | Year