VBScript constant: vbGeneralDate
- Updated2024-09-12
- 1 minute(s) read
Constants > Date Format Constants > VBScript constant: vbGeneralDate
VBScript constant: vbGeneralDate
Provides, for the FormatDateTime method, a constant for the general date and time format according to your regional settings. The date part uses the short date format and the time part uses the long time format.
Object.vbGeneralDate
| Object | VBS The constant belongs to the VBS functionality. You do not need to specify this object. |
| Object.vbGeneralDate | Variant with read access vbGeneralDate has the value 0. |
The following example displays the current date and the current time:
Call MsgBox(FormatDateTime(Now, vbGeneralDate))