VBScript constant: vbUseSystem
- Updated2024-09-12
- 1 minute(s) read
Constants > Date and Time Constants > VBScript constant: vbUseSystem
VBScript constant: vbUseSystem
Provides, for the date functions like DateDiff, DatePart and Weekday, a constant for the first week of the year, specified in the regional settings of the operating system.
Object.vbUseSystem
Object | VBS The constant belongs to the VBS functionality. You do not need to specify this object. |
Object.vbUseSystem | Variant with read access vbUseSystem has the value 0. |
The following example displays the current calendar week:
Dim WeekOfYear WeekOfYear = DatePart("ww", now, vbMonday, vbUseSystem) MsgBox WeekOfYear